-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Normal
-
Affects Version/s: 8.6.0
-
Component/s: None
-
Security Level: Jimmy
-
None
-
None
Steps to Reproduce
Run fiddle
http://zkfiddle.org/sample/33u3iah/3-error-box-not-sticking-in-closed-group-box
Open the groupbox by clicking on it, and show validation messages by clicking the save button.
Scroll the groupbox
Current Result
Data-scrollable doesn't work (popups don't follow scroll pos
groupbox._doScroll is never invoked
Expected Result
groupbox._doScroll should be invoked and data-scrollable should trigger
Debug Info
ContainerWidget only registers the JS scroll listener on contentNode during bind
If the groupbox is rendered closed, the contentNode doesn't exist yet.
Root Cause
Workaround
Add a scroll listener during Open
<script><![CDATA[
zk.afterLoad('zul.wgt', function() {
var xGroupbox = {};
zk.override(zul.wgt.Groupbox.prototype, xGroupbox ,{
setOpen : function() {
var self = this;
var result = xGroupbox.setOpen.apply(this, arguments);
this.domListen_(this.getCaveNode(), 'onScroll');
setTimeout(function()
,700);
return result;
}
});//zk.override
});//zk.afterLoad
]]></script>