Hi,
This has most likely some simple solution, since the desired effect can be achieved with HTML + CSS pretty easily.
I have a parent layout with multiple children layouts. I want for height of parent layout to be sum of heights of children layouts up to some point and then fix the size of parent layout and enable scrolling (only vertical scrolling).
There is variable amount of children layouts and their size can change based on user actions or masterLayout width (change size or visibility).
I was trying something like
setMaxHeight seems to have no effect. Without setOverflow(Overflow.AUTO) masterLayout just grows over the limit. with setOverflow(Overflow.AUTO) the size of master layout is shrinked to 1px.
SmartGWT version - 6.0-p20161023
This has most likely some simple solution, since the desired effect can be achieved with HTML + CSS pretty easily.
I have a parent layout with multiple children layouts. I want for height of parent layout to be sum of heights of children layouts up to some point and then fix the size of parent layout and enable scrolling (only vertical scrolling).
There is variable amount of children layouts and their size can change based on user actions or masterLayout width (change size or visibility).
I was trying something like
Code:
masterLayout = new VLayout(); masterLayout.setAutoHeight(); masterLayout.setMaxHeight(300); masterLayout.setOverflow(Overflow.AUTO); //for each child masterLayout .addMember(childLayout);
SmartGWT version - 6.0-p20161023
Comment