Security Level: Jimmy
ZK 8.0.4 S1
steps to reproduce
- load the zul
- click the button
no label is displayed
a label "this is my test" shows up.
The root cause is that ZK adds a component (and size it) before setting attributes at the client side. Therefore, When zk calculates the child window's height, the bigDiv is still visible and consumes all available space. So that newly-added window becomes 0 height.
- replace the outer window with vlayout.
Vlayout will resize its child component when its child components are removed or added.
- detach the bigDiv
- set height="100%"
if there is no other sibling, apply the alternative which is the same as vflex=1
make bigDiv invisible first