Widgets: Containers: Most containers with unspecified height or width become 0 
by 0
-----------------------------------------------------------------------------------

                 Key: XAP-232
                 URL: https://issues.apache.org/jira/browse/XAP-232
             Project: XAP
          Issue Type: Bug
          Components: Widgets
            Reporter: Trevor Oldak


tabPane, freePane, horiz//vert splitPane, and scrollPane will display by 
default as 0x0, thus not showing up on the screen. This does not depend on the 
parent of the container.

For example:
                        <horizontalBoxPane width="500px" height="300px" 
backgroundColor="#F0F0F0" id="testComponentFreePane">
                                <xal:tabPane id="testComponent">
                                        <xal:tab text="Tab1" id="tab1">
                                                <xal:freePane 
backgroundColor="#FFCCCC" width="200px" height="100px">
                                                        <xal:button 
text="button1" x="0px" width="25%"/>
                                                        <xal:button 
text="button2" x="30%" width="25%"/>
                                                        <xal:button 
text="button3" x="60%" width="25%"/>
                                                </xal:freePane>
                                        </xal:tab>
                                        <xal:tab text="Tab2" id="tab2">
                                                <verticalBoxPane 
backgroundColor="#CCFFCC">
                                                        <xal:button 
text="buttonA"/>
                                                        <xal:button 
text="buttonB"/>
                                                        <xal:button 
text="buttonC"/>
                                                </verticalBoxPane>
                                        </xal:tab>
                                        <xal:tab text="Tab 3" id="tab3">
                                                <horizontalBoxPane 
backgroundColor="#CCCCFF">
                                                        <xal:button 
text="buttonA" width="30px"/>
                                                        <xal:button 
text="buttonB"/>
                                                        <xal:button 
text="buttonC" width="30%"/>
                                                </horizontalBoxPane>
                                        </xal:tab>
                                </xal:tabPane>
                        </horizontalBoxPane>

The tabPane will not show up. The horizontalBoxPane could be replaced by a 
freePane, scrollPane, or many other containers.

Similarly, in a borderPane, if width and height are not specified, only the 
north and south elements will show, and that is only if the north and south 
elements have heights of their own.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to