-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi!
I have a modal window where most of the components are labels and I have one anchor element at the end of the window. When I open the window, the anchor element gets the automatically focused which results in the page being scrolled down to that anchor element.
How can I avoid this behaviour so that the page does not scroll down when I open it?
Edit: My version is ZK EE 7.0.2.
Simple trick :
Set this first in your window :
<textbox visible="false"/>
Greetz chill.
same here, I want to remove default onLoad focus from textbox
Same here ... Did you guys find a solution to that?
Only work around I found atm is scrolling back up through JS called in the @init method with Clients.evalJavaScript, as I did not want to bind component in my VM (but this is not much better).
Made a fiddle to show the issue : http://zkfiddle.org/sample/3thplcj/3-Issue-with-navigation-scroll
Asked: 2014-07-15 18:37:47 +0800
Seen: 54 times
Last updated: Sep 15 '15