[Laszlo-dev] For Review: Change 20080618-Philip-8. Summary:, Fix radar map display for IE7/dhtml

André Bargull a.bargull at intensis.de
Wed Jun 18 23:40:45 PDT 2008


> <image name="radarscan" x="20" y="20"
>         width="200" height="135" stretches="both">
>     <handler name="oninit">
> -       
> this.setSource("http://weather.yahoo.com/images/ussat_440x297.jpg");
> +      
> this.applyData("http://weather.yahoo.com/images/us_radar_medium_usen.jpg");
>     </handler>
> </image>

Why can't we just use the src-attribute? Doesn't it work here?
> <image name="radarscan" x="20" y="20"
>         width="200" height="135" stretches="both" 
> *src="http://weather.yahoo.com/images/us_radar_medium_usen.jpg"* />


> Change 20080618-Philip-8 by Philip at Philip-DC on 2008-06-18 19:44:47 EDT
>      in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/trunk
>      for http://svn.openlaszlo.org/openlaszlo/trunk
>
> Summary: Fix radar map display for IE7/dhtml
>
> New Features:
>
> Bugs Fixed: LPP-6009
>
> Technical Reviewer: max
> QA Reviewer: (pending)
> Doc Reviewer: (pending)
>
> Documentation:
>
> Release Notes:
>
> Details:
> weather.lzx - Changed url so a radar image is displayed.
>
> LzSprite.js - Updated __updateStretches() to set/restore 
> style.display on the image. I found that without it, setting the 
> width/height does not always take effect in IE7 (you can read the 
> values back after setting them and the width/height does not match 
> what you set).
>
> Tests:
> See LPP-6009 for steps how to reproduce the problem. It does not 
> occur with this changeset. weather continues to run in all platforms 
> (swf8/swf9/dhtml) on all browsers.
>
> Files:
> M      WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
> M      demos/weather/weather.lzx
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20080618-Philip-8.tar
>   



More information about the Laszlo-dev mailing list