-
Bug
-
Resolution: Fixed
-
Minor
-
7.0.8, 8.0.5
-
Security Level: Jimmy
-
Chrome
ZK < 8.5.0
Steps to Reproduce
1. load the zul below
<zk> <div height="2000px"/> <textbox id="box"/> <button label="set error message" onClick="error()"/> <zscript><![CDATA[ public void error(){ box.setErrorMessage("error"); } ]]></zscript> </zk>
2. press the button
Current Result
no errorbox appears.
Expected Result
errorbox pops up.
Debug info
1. 8.5.0 doesn't have such issue, fixed by https://github.com/zkoss/zk/pull/917
2. DocRoot() returns body instead of document root.
Root Cause
1. if we remove the first <div>, the errorbox pops up as expected.
Workaround
the attached javascript.