Author: ptw
Date: 2007-06-14 19:17:36 -0700 (Thu, 14 Jun 2007)
New Revision: 5423

Modified:
   
openlaszlo/branches/legals/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
Log:
Change 20070614-ptw-J by [EMAIL PROTECTED] on 2007-06-14 15:59:01 EDT
    in /Users/ptw/OpenLaszlo/legals/test
    for http://svn.openlaszlo.org/openlaszlo/branches/legals/test

Summary: Make canvas percentage dimensions work again

Bugs Fixed:
LPP-4012 'Sizing canvas height or width to 100 percent isn't working'

Technical Reviewer: max (Message-ID: <[EMAIL PROTECTED]>)
QA Reviewer: [EMAIL PROTECTED] (pending)
Doc Reviewer: (pending)

Details:
    Revert erroneous optimization from r5252

Tests:
    ant lztest, test case from bug



Modified: 
openlaszlo/branches/legals/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
===================================================================
--- 
openlaszlo/branches/legals/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
    2007-06-14 22:26:59 UTC (rev 5422)
+++ 
openlaszlo/branches/legals/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
    2007-06-15 02:17:36 UTC (rev 5423)
@@ -603,7 +603,11 @@
                 if (className.equals("class")) {
                     type = getAttributeTypeInfoFromSuperclass(element, name);
                 }  else {
-                    type = classModel.getAttributeTypeOrException(name);
+                    // NOTE [2007-06-14 ptw]: Querying the classModel
+                    // directly will NOT work, because the schema
+                    // method has some special kludges in it for canvas
+                    // width and height!
+                    type = schema.getAttributeType(element, name);
                 }
 
             } catch (UnknownAttributeException e) {


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to