Announcement

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

    Size of tab changes when it is selected

    Hello,

    On the latest nightly (but also occurring earlier but not on 3.0), we have the effect where the size of the tab changes when it is selected.

    This happens when we set the bold title style together with a large title and is probably caused by that.

    final Tab preferencesTab = new Tab("this is a long title");
    DynamicForm preferencesForm = new DynamicForm();
    CheckboxItem useTabsCheckbox = new CheckboxItem();
    useTabsCheckbox.setTitle("Use Smart GWT tabs");
    preferencesForm.setFields(useTabsCheckbox);
    preferencesTab.setPane(preferencesForm);
    preferencesTab.setTitleStyle("font-weight:bold");

    You can see, at first the last tab has size X, when it is selected by the user it has size X+Y.

    We where wondering if this is an issue or not?

    #2
    Since the other tabs adjust automatically, no, not an issue, but you can remove the bold effect through the skinning system if you prefer.

    Comment


      #3
      True. But is this "dancing tab effect" intentional? It used to be different...
      The difference between the 3.0 vs 3.1 behaviour is that in the 3.0 the initial size of the tab took into account the possible bold effect (the tab's initial size catered for both plain & bold text) while in the 3.1 the initial size of the tab only caters for the plain text (tab is resized/dancing when selected because of the bold font).

      Comment


        #4
        There was never a behavior of taking into account the bold size, but perhaps you switched to auto-sizing tabs whereas before you had a fixed size that was large enough to accomodate the bold text.

        Regardless, we're getting rid of the bold effect.

        Comment

        Working...
        X