-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I've just detected a small problem with my ZK-Codemirror component. If it is used within a window and the window title is changed, the component is not properly redrawn... it just disappears.
As far as I can see changing the window title calls the following function within web/js/zul/wnd/Window.js to rerender the window:
_updateDomOuter: function () { ... this.rerender(this._skipper); ... }
If this happens, I need some means to rerender the zk-codemirror component from scratch. Has anyone an idea how to achieve this?
Thx, Maik
Kudos to Jimmy who pointed me to listen for onRestore. Works like a charm...:-)
bind_ : function() { this.$supers('bind_', arguments); .......... zWatch.listen({onRestore : this}); }, unbind_ : function() { ......... zWatch.unlisten({onRestore : this}); this.$supers('unbind_', arguments); }, onRestore: function () { //trigger when parent rerender },
Asked: 2010-12-21 13:36:06 +0800
Seen: 246 times
Last updated: Dec 22 '10