Widgets: TextArea: Height of textarea is 1px smaller than all other widgets 
when height set in px
-------------------------------------------------------------------------------------------------

                 Key: XAP-506
                 URL: https://issues.apache.org/jira/browse/XAP-506
             Project: XAP
          Issue Type: Bug
          Components: Widgets: TextField / TextArea / PasswordField
            Reporter: Trevor Oldak
            Priority: Minor


The height of a textArea is always 1px shorter than that of all other widgets 
by 1 px whenever they're given the same height in pixels
<xal xmlns="http://openxal.org/ui/html";>
  <freePane width="1800px" height="1800px">
    <horizontalBoxPane height="300px" width="1070px" x="0px" y="10px">
        <button height="100px" width="100px" text="Button" borderStyle="solid"/>
        <checkBox height="100px" width="100px" text="Checkbox" 
borderColor="black" borderStyle="solid" borderWidth="1px"/>
        <treeTable height="100px" width="100px"  borderStyle="solid">
                <column>
                  <header text="Column #1"/>
                </column>
                <column>
                  <header text="Column #2"/>
                </column>
                <row>
                  <cell text="Tree Item 1"/>
                  <cell text="Tree Item 1"/>
                  <row>
                    <cell text="Sub Tree Item 1"/>
                    <cell text="Sub Tree Item 1"/>
                  </row>
                  <row>
                    <cell text="Sub Tree Item 2"/>
                    <cell text="Sub Tree Item 2"/>
                  </row>
                </row>
                <row>
                  <cell text="Tree Item 2"/>
                  <cell text="Tree Item 2"/>
                </row>
              </treeTable>
        <tree height="100px" width="100px" borderStyle="solid">
        <column/>
        <row>
          <cell text="Tree Item 1"/>
          <row>
            <cell text="Sub Tree Item 1"/>
          </row>
          <row>
            <cell text="Sub Tree Item 2"/>
          </row>
        </row>
        <row>
          <cell text="Tree Item 2"/>
        </row>
      </tree>
        <comboBox height="100px" width="100px" text="ComboBox" 
borderStyle="solid">
        <listBox>
          <listItem text="List Item #1"/>
          <listItem text="List Item #2"/>
          <listItem text="List Item #3"/>
        </listBox>
      </comboBox>
        <label height="100px" width="100px" text="Label" borderStyle="solid" 
borderWidth="1px"/>
        <verticalToolBar height="100px" width="100px" borderStyle="solid">
        <button text="Button 1"/>
        <button text="Button 2"/>
      </verticalToolBar>
        <link height="100px" width="100px" horizontalAlignment="left" 
text="Link" borderStyle="solid" borderWidth="1px"/>
        <horizontalToolBar height="100px" width="100px" borderStyle="solid">
        <button text="Button 1"/>
        <button text="Button 2"/>
      </horizontalToolBar>
        <listBox height="100px" width="100px" borderStyle="solid">
        <listItem text="List Item #1"/>
        <listItem text="List Item #2"/>
        <listItem text="List Item #3"/>
      </listBox>
        <menuBar height="100px" width="100px" borderStyle="solid">
        <menu text="File">
          <popupMenu>
            <menuItem text="Open"/>
            <menuItem text="Close"/>
            <menuItem text="Preferences">
              <popupMenu>
                <menuItem text="A preference"/>
                <menuItem text="A different preference"/>
              </popupMenu>
            </menuItem>
          </popupMenu>
        </menu>
        <menu text="Edit">
          <popupMenu>
            <menuItem text="Cut"/>
            <menuItem text="Copy"/>
            <horizontalSeparator/>
            <menuItem text="Paste"/>
          </popupMenu>
        </menu>
        <menu disabled="true" text="Format">
          <popupMenu>
            <menuItem text="Cut"/>
            <menuItem text="Copy"/>
            <menuItem text="Paste"/>
          </popupMenu>
        </menu>
        <menu text="Run">
          <popupMenu>
            <menuItem text="Open"/>
            <menuItem text="Close"/>
            <menuItem text="Preferences..."/>
          </popupMenu>
        </menu>
      </menuBar>
        <passwordField height="100px" width="100px" text="Password Field" 
borderStyle="solid"/>
        <radioButton height="100px" width="100px" text="RadioButton" 
borderStyle="solid" borderWidth="1px"/>
        <table height="100px" width="100px" borderStyle="solid">
        <column>
          <header text="Column #1"/>
        </column>
        <column>
          <header text="Column #2"/>
        </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>
        <textArea height="100px" width="100px" 
borderStyle="solid">TextArea</textArea>
        <textField height="100px" width="100px" text="TextField" 
borderStyle="solid"/>
        <htmlView height="100px" width="100px" borderStyle="solid"/>
    </horizontalBoxPane>
  </freePane>
</xal>

-- 
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