Page 1 of 1

Fit = vertical broken in horizontal layout

Posted: Tue Apr 12, 2011 8:43 pm
by xavier.lepaul

Inside a container whose layout is horizontal, whenever I set a control's "fit" property to "vertical" (or "both"), the control's height is set to a value that correspond what would be set as a width if it were to fit horizontally.
For instance, if the container's dimension are 300x400, the control's height will be set to 288 (instead of the expected 388)

Image

Image


Fit = vertical broken in horizontal layout

Posted: Wed Apr 13, 2011 5:41 am
by maxkatz

I tried your example and it worked for me, for example:

Image

Let me know if it's still not working for you...


Fit = vertical broken in horizontal layout

Posted: Wed Apr 13, 2011 3:44 pm
by xavier.lepaul

I tried again, on various browser and flash plugins (Chrome (plugin 10.2.154.12), Firefox (10.2.153.1) and IE (both with 10.2.152.26 and 10.3.180.65 beta2)), and it's still broken. In your test, does your panel's layout is horizontal ? without that, there is no bug.


Fit = vertical broken in horizontal layout

Posted: Wed Apr 13, 2011 3:56 pm
by maxkatz

I did try in Firefox but on Linux, and it worked for me as well. I'll report this as a bug and let our team look into this further.


Fit = vertical broken in horizontal layout

Posted: Wed Apr 13, 2011 3:57 pm
by maxkatz

What Firefox and IE version did you try?


Fit = vertical broken in horizontal layout

Posted: Wed Apr 13, 2011 5:14 pm
by xavier.lepaul

Firefox 4 and IE 8, both in Windows XP. In my first version of the comment, I said that it was working on Chrome, but it was because I forgot to set the container layout to horizontal.


Fit = vertical broken in horizontal layout

Posted: Wed Apr 13, 2011 5:37 pm
by maxkatz

Thanks for the additional information.