History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-4012
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: -- --
Assignee: Unassigned
Reporter: yuwen fang
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

Got warning while resizing grid width.

Created: 21/May/07 01:38 PM   Updated: 05/Feb/08 12:54 PM
Component/s: Components - grid
Affects Version/s: 4.0.0, 4.0.2
Fix Version/s: RingDing (4.1)

Time Tracking:
Not Specified

Severity: Minor
Fixed in branch: branches/legals
Runtime: N/A
Fix in hand: True


 Description  « Hide
If we resize the browser's width to make grid's horizontal scrollbar show and then hide, debug will report some warnings.

Here is my test file:

<canvas debug="true">
  <dataset name="contacts" request="true"
  src="http://www.openlaszlo.org/lps/demos/contacts/contactsdata.xml"/>
  <view width="${parent.width/2}">
      <grid datapath="contacts:/resultset" width="${parent.width}">
          <gridcolumn showheader="false" width="50">
          <view bgcolor="#CCCCCC" width="${parent.width}" placement="header"
                height="${parent.immediateparent.height-1}"/>
              <text datapath="position()"/>
          </gridcolumn>
          <gridcolumn width="200"> Name
              <text datapath="@displayname"/>
          </gridcolumn>
          <gridcolumn sortable="false"> Home</gridcolumn>
      </grid>
  </view>
  </canvas>

After resizing the browser to make horizontal scrollbar show and hide, the warnings will be like this:


WARNING: null setters on «lz.scrollbar» scrollable true
WARNING: base/basescrollbar.lzx:322: reference to undefined property 'scrolltrack'
WARNING: null setters on «lz.basescrollthumb» width 14
WARNING: base/basescrollbar.lzx:284: reference to undefined property 'scrolltrack'
WARNING: null setters on «lz.basescrollthumb» x 0
WARNING: null setters on «lz.basescrollthumb» width 14
WARNING: null setters on «lz.scrollbar» scrollable false
                                            .
                                            .
                                            .

It might be fixed if we modify the state in grid.lzx,


<state apply="${ parent.showhscroll &amp;&amp;
            parent.needshscroll &amp;&amp;
            parent.sizetoheader == false}">
            <scrollbar axis="x" scrolltarget="classroot.header.hcontent"/>
</state>


to

<scrollbar axis="x" scrolltarget="classroot.header.hcontent"
                   visible="${ parent.showhscroll &amp;&amp;
                                      parent.needshscroll &amp;&amp;
                                      parent.sizetoheader == false}"/>




-Yuwen





 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Josh Crowley - 04/Jun/07 06:08 PM
Approved by Phil R.

Mamye Kratt - 28/Jun/07 10:31 AM
(4.0 branch local build (4.0.3) r5538)
Fixed

Mamye Kratt - 28/Jun/07 10:31 AM
Need to run testfile in the bug in legals.

Mamye Kratt - 17/Jul/07 12:02 PM
Need to test in legals.

Mamye Kratt - 05/Feb/08 12:54 PM
(pagan-deities build r7956 - legals -> trunk -> pagan-deities)
No warnings when resizing the window in swf and dhtml.