Author: hqm
Date: 2007-06-20 19:10:17 -0700 (Wed, 20 Jun 2007)
New Revision: 5488

Modified:
   openlaszlo/branches/legals/lps/components/base/basescrollbar.lzx
Log:
Change 20070620-hqm-a by [EMAIL PROTECTED] on 2007-06-20 21:41:01 EDT
    in /cygdrive/c/users/hqm/openlaszlo/legals3
    for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary:  fix basescrollbar DHTML bug

New Features:

Bugs Fixed: LPP-4149

Technical Reviewer: max (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
    
check for null reference


Tests:



Modified: openlaszlo/branches/legals/lps/components/base/basescrollbar.lzx
===================================================================
--- openlaszlo/branches/legals/lps/components/base/basescrollbar.lzx    
2007-06-21 01:42:01 UTC (rev 5487)
+++ openlaszlo/branches/legals/lps/components/base/basescrollbar.lzx    
2007-06-21 02:10:17 UTC (rev 5488)
@@ -234,12 +234,14 @@
         <!--- @keywords private -->
         <method name="targetSizeUpdate">
             <![CDATA[
-            var sm = this.scrolltarget[this.sizeAxis];
-            if (this.othersb && this.othersb.visible) {
-               sm += this[this.otherSizeAxis];
+            if (this.scrolltarget) {
+                var sm = this.scrolltarget[this.sizeAxis];
+                if (this.othersb && this.othersb.visible) {
+                    sm += this[this.otherSizeAxis];
+                }
+                this.setAttribute("scrollmax", sm);
+                this.scrollbarSizeUpdate();
             }
-            this.setAttribute("scrollmax", sm);
-            this.scrollbarSizeUpdate();
             ]]>
         </method>
 


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

Reply via email to