Author: jcrowley
Date: 2007-10-18 11:55:23 -0700 (Thu, 18 Oct 2007)
New Revision: 6907
Modified:
openlaszlo/trunk/lps/components/base/basegrid.lzx
Log:
Change 20071018-jcrowley-7 by [EMAIL PROTECTED] on 2007-10-18 14:20:26 EDT
in /Users/jcrowley/src/svn/openlaszlo/trunk-a
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Setting "rowheight" produces warnings. (Contributor bug
fix from Andre Bargull)
New Features:
Bugs Fixed: LPP-4925 - Setting "rowheight" produces warnings.
Technical Reviewer: pbr
QA Reviewer: ben
Doc Reviewer:
Documentation:
Release Notes:
Details: Applied and tested Andre Bargull's bug fix.
Tests: Run the following and note an absence of errors in the
Debugger:
<canvas debug="true">
<grid rowheight="17" shownitems="6"/>
</canvas>
Modified: openlaszlo/trunk/lps/components/base/basegrid.lzx
===================================================================
--- openlaszlo/trunk/lps/components/base/basegrid.lzx 2007-10-18 18:24:37 UTC
(rev 6906)
+++ openlaszlo/trunk/lps/components/base/basegrid.lzx 2007-10-18 18:55:23 UTC
(rev 6907)
@@ -485,10 +485,12 @@
this.shownitems = s;
if ( this.rowheight == null ) return;
- if ( s != -1 ){
- var bottompart = this.height -
- (this.content.y + this.content.height );
- this.setHeight( bottompart + this.content.y + s * rowheight );
+ if(this.isinited){
+ if ( s != -1 ){
+ var bottompart = this.height -
+ (this.content.y + this.content.height
);
+ this.setHeight( bottompart + this.content.y + s *
rowheight );
+ }
}
if ( this.onshownitems ){
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins