Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Strange behaviour in comboboxitem settitlestyle. Bug?

    I have a combobox that i create and set a CSS style on like this:

    Code:
    locations = new ComboBoxItem(NubaCommonConstants.FIELD_NAME, NubaCommonConstants.constants.domainLocation());
    locations.setAnimatePickList(true);
    locations.setValueField(NubaCommonConstants.FIELD_ID);        
    locations.setDisplayField(NubaCommonConstants.FIELD_NAME);
    locations.setOptionDataSource(DataSource.get("location"));
    locations.setTitleStyle("controlText");
    Now, if you'd be so kind and take a look at the attached pictures, you can see that the style is applied as expected, but as soon as i click on it to select something, the titlestyle becomes something else entirely!

    This is not what i expected. Thoughts appreciated.
    Attached Files

    #2
    Does your css class also specify controlText[Selected/Over/Disabled], etc? It will need to.

    Comment


      #3
      Ah, of course. My bad, havent apparently had enough coffee yet. Swift reply, thanks!

      Comment

      Working...
      X