Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Layout growing with item(s) snapped to right edge

$
0
0
Hello,

I am trying to get a layout to work as follows and am having trouble figuring it out.

I would like to have an HLayout with two sections, and a resize bar that hides the left section and allows the right section to grow in the newly available space... and then when the left section is shown again, the right section would revert to its original size. This works the way I'd like it to unless the right section has one or more child items snapped to its right edge. In that case, when the left section is shown again, the overall layout grows, and the right section becomes larger than it originally was.

I have attached a .js file with a simple test case. Once loaded in a browser, just click the resize bar a couple of times so that the left section hides and then shows again and you should see the right section grow in size.

I'm definitely not suggesting that this isn't correct behavior per the framework, but would appreciate some help in getting this to work the way I need it to. Apologies if I am missing something obvious.

In our actual application environment, the right section fills the entire right portion of the browser window, and so when the resize takes place, any items snapped to that right edge end up off the screen, which causes scroll bars to appear, etc.

I am using SmartClient_v91p_2014-06-08_Pro.

Thanks for your help!

Attached Files
File Type: js testCase.js (682 Bytes)

Viewing all articles
Browse latest Browse all 4756

Trending Articles