Approved. In swf there is a warning generated because this.inset is not defined:

WARNING @../roundrect.lzx#197: reference to undefined property 'inset'



Summary: Make drawviews resize.

New Features:

Bugs Fixed: LPP-3905 - Changes on width/height must be propagated down to the HTML-canvas in DHTML

Technical Reviewer: promanik
QA Reviewer: <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
Doc Reviewer: (pending)

Documentation: Drawviews now resize when the width or height are changed. In DHTML, the drawview will be cleared so it must be redrawn whenever the oncanvas event is sent.

Release Notes:

Details: drawview.lzx - In _buildcanvas(), if the canvas exists it is
resized and the oncontext event is sent because it will be cleared.
For IE, the canvas must be completely destroyed and rebuilt.  setWidth
() and setHeight() call _buildcanvas() whenever a valid height and width are set.

roundrect.lzx - Clear cached color state when oncontext is sent to ensure canvas state is reset properly.


Tests: <http://localhost:8080/trunk/lps/components/incubator/test/test->http://localhost:8080/trunk/lps/components/incubator/test/test-
roundrectbutton.lzx?lzr=dhtml now resizes beyond 100 pixels in IE and firefox.

Files:
M      lps/components/extensions/drawview.lzx
M      lps/components/incubator/roundrect.lzx

Changeset: <http://svn.openlaszlo.org/openlaszlo/patches/20070925->http://svn.openlaszlo.org/openlaszlo/patches/20070925-
maxcarlson-3.tar

Reply via email to