-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello support,
My main site is a borderlayout. The north, west, south and the center area includes an Include which is applied to a controller. The controller creates a div, which also includes an Include which is applied to a composer (extends GenericForwardComposer). These composer creates the content, like grids or lists. When i change the content of these grids or lists i have to invalidate the north, west, south or center area and resize the borderlayout. In most cases this is no problem, because i know that content was changed. But when the user change the order of a list or the page (we are using paging) and we don't handle the sorting and paging by ourself, i don't catch the event and could not resize manually. The result is an incorrectly shown list or grid. In this case f.e. the height of the list is 800px, but the size of the "container" is only 700px. As a result 100px of the list are missing.
By now there is only one option. I have to handle sorting and paging by my self. But that means a lot of work ...
Am i doing something wrong, or did i miss something? Is there a possibility that zk recognize the change of the content and resize by it self?
Greetings, Sascha
PS: Borderlayout and West with vflex="min", Center with vflex="min" and flex="true". The Divs holding the lists and grids do also set vflex to min.
Maybe this can help you point to the right direction(I have no idea this can help but maybe it can help you)
Events.ON_VISIBILITY_CHANGE
Asked: 2014-01-22 09:08:20 +0800
Seen: 14 times
Last updated: Jan 22 '14
Is there a runnable sample that can reproduce this issue for further investigation? And what is your ZK version, testing browser/browser version?
benbai ( 2014-01-23 00:28:26 +0800 )editHi benbai, there is a new thread with a running sample on ZkFiddle. See http://forum.zkoss.org/question/91209/size-problems-with-borderlayout/
Greetings
salbader ( 2014-02-20 10:48:06 +0800 )edit