-
Bug
-
Resolution: Fixed
-
Normal
-
3.0.3
-
Security Level: Jimmy
-
None
-
Using ZK 8.0.2
Reproduced with:
<div> <div id="hidden" visible="false"> <gmaps width="400px" height="300px"/> </div> <button onClick="hidden.setVisible(true)"/> </div>
When using a gmaps, initially not visible.
In ZK 8.0.1.1:
zk/src/archive/web/js/zk/effect.js : 233
if (!$anchor.jq.length || !$anchor.isRealVisible(true)) return; //nothing do to. this._opts = opts;
this._opts is not updated
this causes in gmapsz/src/archive/web/js/gmaps/Gmaps.js :669
_tryBind: function(dt, skipper, after) { var maskOpts; if (maskOpts = this._maskOpts) { if (maskOpts._mask && maskOpts._mask._opts) {
maskOpts._mask._opts is not set, thus the If() branch is not fulfilled.
in ZK 8.0.2
zk/src/archive/web/js/zk/effect.js : 233
this._opts = opts; if (!$anchor.jq.length || !$anchor.isRealVisible(true)) return; //nothing do to.
this._opts is updated
This causes maskOpts._mask._opts to not be null, and fullfil the if() branch, which fail as the mask is not rendered.
- relates to
-
ZK-3118 processing mask cause a js missing error exception when target component is not rendered.
- Closed