-
Bug
-
Resolution: Fixed
-
Normal
-
6.0.1
-
None
For example,
<zk> <script> zk.load('zul.mesh', function () { var _meshWidget = {} zk.override(zul.mesh.MeshWidget.prototype, _meshWidget, { _calcSize: function () { zk.log(this.uuid); _meshWidget._calcSize.apply(this, arguments); //call the original method } }); }); </script> <borderlayout> <center flex="true"> <listbox> <listitem label="1" /> <listitem label="2" /> <listitem label="3" /> <listitem label="4" /> </listbox> </center> </borderlayout> </zk>
The issue is that, the flex of LayoutRegion with true will specify the child component to be vflex=true and hflex=true, and then the SelectWidget will trigger this.onSize() when invoking setVflex() and setHflex() functions in the SelectWidget.js