Widgets: Table: Tables with no width display scrollbars when they shouldn't in 
a window.
----------------------------------------------------------------------------------------

                 Key: XAP-485
                 URL: https://issues.apache.org/jira/browse/XAP-485
             Project: XAP
          Issue Type: Bug
          Components: Widgets: Table/Tree/TreeTable
            Reporter: Trevor Oldak
            Priority: Minor


This could almost be a feature because it makes parts of the table outside the 
window boudaries accessible, but it's still quirky behavior
Run the following XAL code. Make the window narrower and watch the scrollbars 
appear on the windows with no specified width

    <window title="With Table, Minimized, Various widths">
      <freePane width="100%" height="100%">
      <label height="20px" text="Set width" width="100px" x="330px" y="0px"/>
      <table width="208px" x="330px" y="30px">
        <column>
          <header text="Column #1" width="100px"/>
        </column>
        <column>
          <header text="Column #2" width="100px"/>
        </column>
        <row>
          <cell text="Row 1 Cell 1"/>
          <cell text="Row 1 Cell 2"/>
        </row>
        <row>
          <cell text="Row 2 Cell 1"/>
          <cell text="Row 2 Cell 2"/>
        </row>
        <row>
          <cell text="Row 3 Cell 1"/>
          <cell text="Row 3 Cell 2"/>
        </row>
      </table>
      <label height="20px" text="Set height" width="100px" x="0px" y="140px"/>
      <table height="98px" x="100px" y="140px">
        <column>
          <header text="Column #1" width="100px"/>
        </column>
        <column>
          <header text="Column #2" width="100px"/>
        </column>
        <row>
          <cell text="Row 1 Cell 1"/>
          <cell text="Row 1 Cell 2"/>
        </row>
        <row>
          <cell text="Row 2 Cell 1"/>
          <cell text="Row 2 Cell 2"/>
        </row>
        <row>
          <cell text="Row 3 Cell 1"/>
          <cell text="Row 3 Cell 2"/>
        </row>
      </table>
      <label height="20px" text="No width" width="100px" x="100px" y="0px"/>
      <table x="100px" y="30px">
        <column>
          <header text="Column #1" width="100px"/>
        </column>
        <column>
          <header text="Column #2" width="100px"/>
        </column>
        <row>
          <cell text="Row 1 Cell 1"/>
          <cell text="Row 1 Cell 2"/>
        </row>
        <row>
          <cell text="Row 2 Cell 1"/>
          <cell text="Row 2 Cell 2"/>
        </row>
        <row>
          <cell text="Row 3 Cell 1"/>
          <cell text="Row 3 Cell 2"/>
        </row>
      </table>
      <label height="20px" text="No height" width="100px" x="0px" y="30px"/>
      <table height="98px" width="208px" x="330px" y="140px">
        <column>
          <header text="Column #1" width="100px"/>
        </column>
        <column>
          <header text="Column #2" width="100px"/>
        </column>
        <row>
          <cell text="Row 1 Cell 1"/>
          <cell text="Row 1 Cell 2"/>
        </row>
        <row>
          <cell text="Row 2 Cell 1"/>
          <cell text="Row 2 Cell 2"/>
        </row>
        <row>
          <cell text="Row 3 Cell 1"/>
          <cell text="Row 3 Cell 2"/>
        </row>
      </table>
      </freePane>
    </window>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to