Select to view content in your preferred language

Bottom aligned widgets not re-positioning when browser window is resized

4130
1
10-24-2011 05:59 AM
JarrodDoucette
Emerging Contributor
Hi all,

I'm having problems getting bottom aligned widgets to hold their location when I resize my browser window.  I have a widget that I would like positioned along the bottom of the window (left="0", bottom="0"), and it works fine when it first pops up.  The problem is that once you click anywhere in that widget window, or open another widget, and then resize the window the original widget doesn't move with the bottom of the screen.  If I decrease the height of the browser then widget moves off the screen, and if I increase the heght of the browser then I get a gap between the bottom of the widget and the browser.  Is there any way to get around this behavior?

Flex Viewer 2.4
Tested in Chrome and IE

Jarrod
Tags (2)
0 Kudos
1 Reply
JarrodDoucette
Emerging Contributor
After hours of unsuccessful attempts I finally found a solution.  Within my widget mxml I set the BaseWidget height and width to 100%, and then I set the width, height, and bottom="0" on the WidgetTemplate. 
It would be great to know why setting the width, height, and bottom on the BaseWidget didn't work, but for now I'm just happy it works.
0 Kudos