Horizontally Clipped ComboBox
I came across an instance while using the ComboBox control in Flex, where the combobox control was aligned to the right of the screen and the dropdown was clipped when opened!!
Well I tried and found a way around for this situation but you have to sacrifice on the opening and closing transitions of the dropdown. Look at the example below.
I did post this on Flexcoders and realized that Adobe did not quite consider this scenario while developing this control. I did file an enhancement request for it.
Do vote for it if you think its important!
Well, I did look into the code for drawing the dropdown on the ComboBox and found that the condition was handled that if the dropdown height is exceeding the Screen height, the dropdown opens on top rather than down. But, this wasn't handled to check if it exceeds the width of the screen (it's just a couple of lines of code).
I hope it will be fixed in the next release.




0 comments:
Post a Comment