DropDownButton in Toolbar

  • Thread starter Thread starter James Tran
  • Start date Start date
J

James Tran

I created a toolbar, set the style of my button to be a
dropdownbutton, and type in the button name in the text
field.

After I do this, what happens is that the dropdownbutton
automatically grows to about double the original button
height (from 22 or 36). If I change the button height
back to 22, the name of the dropdownbutton is cutoff.
Can someone show me how to fix this problem?
 
It's probably because your drop down button has text while the others don't.
Either remove the drop down button's text or add text to the rest of the
buttons.

-vJ
 
The thing is, there are no other buttons. Here is a
simple way to reproduce the problem. Create a toolbar,
add a drowdownbutton and then give it a name in the text
field. The size of this button will start out at 22 but
once you enter the text name, no matter how short the
name is, the button height automatically goes to 36. If
you manually resize the button back to 22, you will no
longer see the text. This happens no matter what size
you set to the button.
 
This is as expected. If you want to see the text of the button, you need
some space to show it and that's why the height is being readjusted. If you
want to reduce the height of the button you will have to reduce the height
of the image associated with that button.

-vJ
 
Back
Top