See image:
This is very ugly.
thanks.
I just thought of replacing select with some other element
Related
Does anyone knows the names of the style-class for the HTMLEditor's toolbar buttons in image below ?
I got a list of the other buttons:
Thanks in advance.
These CSS classes are in HTML-Editor > bottom-toolbar:
format-menu-button — ComboBox
font-family-menu-button — ComboBox
font-size-menu-button — ComboBox
See for details: JavaFX CSS Reference Guide
I'm trying to do the a Javafx project. And I have some problem with it.
I have a list of text (labels) placed inside the vBox. Is there a way to remove all the text in the vBox? For example, when I click a button "Remove", everything inside the vBox will be disappeared.
Is it possible to do that?
Oh! I just figured it out.
I can use vBox.getChildren().clear();
It works!
vBox.getChildren().removeAll(vBox.getChildren());
works too
I have a css problem and I don't know how to fix it.
In order to expand a dropdown list you must use css below. Work fine only with one condition, when you select an option the select wont return to initial width. WHY??? :(
This a behavior that I want to happen on all browser including IE8 because of IE I must set width on focus .
select:focus{
min-width:158px;
width:auto;
}
fiddle:
http://jsfiddle.net/DCjYA/304/
Check this out! I think will solve your problems regarding combo boxes on IE.
http://www.andreabianchin.it/jquery-skinner/
You need to force the element to lose focus after it changes.
Add:
onchange="this.blur()"
like this:
<select id="id72" class="styleDDC" onchange="this.blur()">
the pseudo css class: focus is for while its selected (while its highlighted blue) once you click on something else it shrinks back down to your min-width
I found this example http://blog.flexexamples.com/2009/11/02/auto-scrolling-the-contents-of-a-vgroup-container-in-flex-4/ which works great but only if you have the focussable elements in a VGroup.
However I have a Form inside the VGroup which means that the focussable elements are in FormItems of the Form. The Form can't be added directly into the Scroller and doesn't have a layout property.
I could use form.getElementIndex(formItem) and then do some math using the formItem y position but that's very ugly. Anyone have an idea how to get this working in a clean way like the above example?
Woot woot! I just found Scroller.ensureElementIsVisible()! Nevermind! :D
Is it possible to have individual indentation of items in a QTreeWidget?
In specific, I have have a column containing both text, icon and for some of them a CheckBox. The items without a CheckBox gets shifted to the left so the indentation of the icon and the text is not inline with the others. Could maybe be fixed with a hidden CheckBox if that is possible?
Maybe the use of Delegates will give you a nice and proper implementation. You'll have the opportunity to re-implement the paint() and sizeHint() methods, and therefore, choose the way your QTreeWidgetItem are being drawn...
More documentation here : http://doc.trolltech.com/4.6/model-view-delegate.html
An example : http://doc.trolltech.com/4.6/itemviews-pixelator.html
Hope it helps a bit !
You can try using the QWidget::setContentMargins() on the widget returned by QTreeWidget::itemWidget().