Is there a catchable event broadcast when the browser window is maximized? The following code works fine when resizing the browser window by dragging its corner, but if you drag it small and then maximize it, only the inner view updates its height. The drawview does not. Is there something like an "onmaximize" event I can use to redraw the drawview?

Thanks,

Dave


Mind the wrap...


<canvas height="100%" width="100">

        <class name="graypanel" extends="drawview">
                        <handler name="oninit">
                                this.redraw();
                                var d = new LzDelegate(this, "redraw");
                                d.register(parent, "onheight");
                        </handler>

                        <method name="redraw">
                                this.clear();
                                this.beginPath();
                                this.rect(0, 0, this.width, this.height, 8);
                                this.strokeStyle = 0x999999;
                                this.lineWidth = 4;
                                this.stroke();
                        </method>
        </class>


        <graypanel x="10" y="10"
                width="60" height="${parent.height-20}">
                
                <view
                                x="20"
                                y="20"
                                width="20"
                                height="${parent.height-40}"
                                bgcolor="red"
                />
                
        </graypanel>

</canvas>

Reply via email to