|
|
|
I vote for increasing the severity of this one - we use stretches a lot in our OL3 application and everything goes crazy when we try to port to OL4 Flash - this is holding up our migration - many thanks.
Author: max
Date: 2007-08-17 15:22:51 -0700 (Fri, 17 Aug 2007) New Revision: 6131 Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as Log: Change 20070817-maxcarlson-e by maxcarlson@plastik on 2007-08-17 11:54:00 PDT in /Users/maxcarlson/openlaszlo/wafflecone for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone Summary: Fix stretches with clickable in swf New Features: Bugs Fixed: Technical Reviewer: promanik QA Reviewer: hminsky Doc Reviewer: (pending) Documentation: Release Notes: Details: Update resource and button size after media is loaded. Tests: See Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as =================================================================== --- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as 2007-08-17 21:27:34 UTC (rev 6130) +++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzMakeLoadSprite.as 2007-08-17 22:22:51 UTC (rev 6131) @@ -174,6 +174,7 @@ if ( this.totalframes > 1 ){ this.checkPlayStatus(); } + this.updateResourceSize(); if ( this._setrescheight ){ var yscale = this.height/this.resourceheight; this.__LZmovieClipRef._yscale = yscale * 100; @@ -182,6 +183,10 @@ var xscale =this.width/this.resourcewidth; this.__LZmovieClipRef._xscale = xscale * 100; } + if (this.setButtonSize) + this.setButtonSize( "height" , this.height ); + if (this.setButtonSize) + this.setButtonSize( "width" , this.width ); //Debug.write(xscale, yscale, this); _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins (wafflecone branch local build r6155)
Need to put a .png file in my-apps along with the test in the bug. Also, need to change the path and filename in test case. See test/resources for a .png file. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
<class name="testclass" width="75" height="75"
clickable="true" focusable="true" opacity="1">
<attribute name="image_id" type="string" value=""/>
<attribute name="image_name" type="string" value=""/>
<attribute name="image_mimetype" type="string" value=""/>
<attribute name="enabled" value="false" type="boolean" />
<attribute name="src" value="" type="text" />
<image src="${parent.src}" width="100%" height="100%" stretches="both"/>
<handler name="oninit">
Debug.write("test oninit");
</handler>
<handler name="onmouseover">
Debug.write("onmouseover class");
</handler>
<handler name="onmousedown">
Debug.write("onmousedown class");
</handler>
<method name="setEnable" args="flag">
Debug.write("setEneable");
</method>
</class>
<testclass src="resources/earth.png"/>