[Laszlo-checkins] r13796 - openlaszlo/trunk/lps/components/extensions

max@openlaszlo.org max at openlaszlo.org
Fri May 1 22:05:02 PDT 2009


Author: max
Date: 2009-05-01 22:05:01 -0700 (Fri, 01 May 2009)
New Revision: 13796

Modified:
   openlaszlo/trunk/lps/components/extensions/html.lzx
Log:
Change 20090501-maxcarlson-3 by maxcarlson at Bank on 2009-05-01 14:18:22 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Maxke minimum size of html tag configurable

Bugs Fixed: LPP-8143 - html: make minimum size configurable

Technical Reviewer: hminsky
QA Reviewer: mdemmon

Details: Add minimumwidth/height attributes.

Tests: test/extensions/html.lzx runs as before.



Modified: openlaszlo/trunk/lps/components/extensions/html.lzx
===================================================================
--- openlaszlo/trunk/lps/components/extensions/html.lzx	2009-05-02 04:28:01 UTC (rev 13795)
+++ openlaszlo/trunk/lps/components/extensions/html.lzx	2009-05-02 05:05:01 UTC (rev 13796)
@@ -100,6 +100,16 @@
           @access public
     -->
     <attribute name="history" value="true"/>
+    <!--- The minimum height of the iframe: embedded swfs won't load with a size less than 1
+          @type Number
+          @access number
+    -->
+    <attribute name="minimumheight" type="number" value="0"/>
+    <!--- The minimum width of the iframe: embedded swfs won't load with a size less than 1
+          @type Number
+          @access number
+    -->
+    <attribute name="minimumwidth" type="number" value="0"/>
 
     <!--- Sets the view to listen to for x/y/width/height change events.
           @type LzView
@@ -193,8 +203,8 @@
             var y = this.getAttributeRelative("y", canvas);
             var z = this.target.sprite.getZ();
         }
-        var width = Math.max(this.width, 0);
-        var height = Math.max(this.height, 0);
+        var width = Math.max(this.width, this.minimumwidth);
+        var height = Math.max(this.height, this.minimumheight);
         lz.embed.iframemanager.setPosition(this.iframeid, x, y, width, height, this.visible, z);
     </method>
     <!--- @access private -->



More information about the Laszlo-checkins mailing list