[Laszlo-user] Window resize handler question

Dave Miller dwmiller at umich.edu
Thu Jan 31 13:29:49 PST 2008


On Jan 31, 2008, at 1:19 PM, Dave Miller wrote:

> Is there a catchable event broadcast when the browser window is  
> maximized?

OK, never mind. The drawview gets its own onheight call just fine:


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

	<class name="graypanel" extends="drawview">
		<handler name="onheight">
			this.clear();
			this.beginPath();
			this.rect(0, 0, this.width, this.height, 8);
			this.strokeStyle = 0x999999;
			this.lineWidth = 4;
			this.stroke();
		</handler>
	</class>


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

</canvas>



Sorry for the noise!

Dave



More information about the Laszlo-user mailing list