-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have a page where I am hiding a sidebar.. however, the rest of the layout is "stuck" until I resize the browser window or toggle the bookmark bar, etc to change the size of the canvas. I think I have to 'force' ZK to recalculate the layout to get around this. How would I do this?
What kind of sidebar / layout sizing are you using?
There is a way to tell widgets (JS object representing components on client side) to recalculate size. if you want to tell a widget to check for size, just use
zUtl.fireSized(componentToResize)
As for getting the component instance, just refer to the zk.$() (or zk.Widget.$() ) syntax: https://www.zkoss.org/javadoc/latest/jsdoc/zk/Widget.html#Z:Z:D-zk.Object-global.Map- you can retrieve from a DOM node, a component id, etc..
Asked: 2019-08-22 16:58:31 +0800
Seen: 14 times
Last updated: Aug 22 '19
Facing issue in masking on phone [closed]
coerceFromString_ override no longer works from 6.5.1 [closed]
Execute Javascript on component visible
Is there a way to resolve view model properties as input to client side javascripts?
scrollbar listner for 2 grid [closed]
Theme javascript wpd file not found