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

SectionStack with overflow "auto" does not resize on content

$
0
0
Hello,

First of all I'm beginner in both Javascript and SmartClient development.

Version of Smarclient : v91p_2014-06-26_LGPL

I create a navigation menu using SectionStack module with dynamic content.
=> All is ok. I create a 4 section menu and each of thems had the size fit on content.
Then I put 100 items in my first section and set overflow: "auto".
=> Section 1 is ok (scroll bar appears), but now the others section does not fit on content anymore (take all the place).

You will find in attachment 2 screenshot and my code sample.

My Question is :
> How to have both scrollbar when necessary and size fit on content ?

I find a quite similar subject : http://forums.smartclient.com/showthread.php?t=26632&highlight=section+overflow
But I'm not sur I'm in the same case...
If I must use the getVisibleHeight() to set the height of my section, please could you help me and tell where to do it ? (I try after creating the section but it always return "1").


P.S : I'm sorry if my sentences are not correct, I'm french and not so good in english...

Attached Images
File Type: png good_section.png (3.4 KB)
File Type: png bad_section.png (7.1 KB)
Attached Files
File Type: js sample_nav.js (2.6 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles