Skip to content

Commit

Permalink
Merge pull request #16 from hanhsu/refix-B-ZKCK-8
Browse files Browse the repository at this point in the history
refix Bug ZKCK-8: CKeditor blink when opening menupopup/popup component
  • Loading branch information
hanhsu committed Nov 25, 2014
2 parents e39ac52 + 6cdd3b6 commit 8cfada5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ckez/src/archive/web/js/ckez/CKeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,13 @@ ckez.CKeditor = zk.$extends(zul.Widget, {
},

_isChildOf: function(wgt) {
var parent = this.parent;
while (parent.widgetName != 'desktop') {
if (parent.$oid == wgt.$oid)
return true;
parent = parent.parent;
var p = this.parent;
if (p) {
do {
if (p == wgt)
return true;
p = p.parent;
} while (p != wgt.desktop);
}
return false;
},
Expand Down

0 comments on commit 8cfada5

Please sign in to comment.