Page 1 of 1

Text alignment in pulldowns

Posted: Thu Dec 04, 2014 12:52 am
by dunbarx
The textAlign property of any of the four "pullDown" style buttons works as advertised once the selection is made. But the alignment is always left-justified when the actual gadget is "open". If I have the following in the contents of the button, for example:

Select A Letter
A
B
C

I have had (just to improve the looks of these things during the actual selection process) to pad the menuItems with spaces. But I have to be careful, I must remember to extract the first word of the selectedText, and not just the selectedText itself.

That sort of thing. So am I missing something simple? Or is this an OS thing?

Craig Newman

Re: Text alignment in pulldowns

Posted: Thu Dec 04, 2014 3:46 am
by FourthWorld
It's a combination of an OS thing and an IDE bug: the OS HIGs require left alignment, but the IDE mistakenly creates option controls with centered labels.