You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "A.J. (JIRA)" <ji...@apache.org> on 2010/07/28 18:16:16 UTC
[jira] Created: (PIVOT-582) IllegalArgumentException : width is
negative when using Form Heading
IllegalArgumentException : width is negative when using Form Heading
--------------------------------------------------------------------
Key: PIVOT-582
URL: https://issues.apache.org/jira/browse/PIVOT-582
Project: Pivot
Issue Type: Bug
Components: wtk-terra
Affects Versions: 1.5
Environment: mac os x 10.6, java 6
Reporter: A.J.
Receiving an exception "java.lang.IllegalArgumentException: width is negative." message when trying to add a heading in a Form container embedded within a Border > TabPane > SplitPane container hierarchy.
Bug can be reproduced with the following wtkx :
<Window title="Form Bug" maximized="true"
xmlns:wtkx="http://pivot.apache.org/wtkx"
xmlns="org.apache.pivot.wtk">
<content>
<SplitPane orientation="horizontal" splitRatio="0.3">
<left>
<TabPane>
<tabs>
<Border TabPane.label="Left Part">
<content>
<Label text="Left content" />
</content>
</Border>
</tabs>
</TabPane>
</left>
<right>
<TabPane>
<tabs>
<Border TabPane.label="Right Part">
<content>
<Form styles="{showFirstSectionHeading:true}">
<sections>
<Form.Section heading="Some heading">
<BoxPane Form.label="Some item">
<TextInput text="Some text"/>
</BoxPane>
</Form.Section>
</sections>
</Form>
</content>
</Border>
</tabs>
</TabPane>
</right>
</SplitPane>
</content>
</Window>
removing the heading or turning it off with the "showFirstSectionHeading" style fixes the problem but this means headings cannot be used in the form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-582) IllegalArgumentException : width is
negative when using Form Heading
Posted by "dutrieux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894363#action_12894363 ]
dutrieux commented on PIVOT-582:
--------------------------------
Could you please add this fix on 1.5.1 ? Because it's very awkward
Thanks for your great job
> IllegalArgumentException : width is negative when using Form Heading
> --------------------------------------------------------------------
>
> Key: PIVOT-582
> URL: https://issues.apache.org/jira/browse/PIVOT-582
> Project: Pivot
> Issue Type: Bug
> Components: wtk-terra
> Affects Versions: 1.5
> Environment: mac os x 10.6, java 6
> Reporter: A.J.
> Assignee: Noel Grandin
> Fix For: 2.0
>
>
> Receiving an exception "java.lang.IllegalArgumentException: width is negative." message when trying to add a heading in a Form container embedded within a Border > TabPane > SplitPane container hierarchy.
> Bug can be reproduced with the following wtkx :
> <Window title="Form Bug" maximized="true"
> xmlns:wtkx="http://pivot.apache.org/wtkx"
> xmlns="org.apache.pivot.wtk">
> <content>
> <SplitPane orientation="horizontal" splitRatio="0.3">
> <left>
> <TabPane>
> <tabs>
> <Border TabPane.label="Left Part">
> <content>
> <Label text="Left content" />
> </content>
> </Border>
> </tabs>
> </TabPane>
> </left>
> <right>
> <TabPane>
> <tabs>
> <Border TabPane.label="Right Part">
> <content>
>
> <Form styles="{showFirstSectionHeading:true}">
> <sections>
> <Form.Section heading="Some heading">
> <BoxPane Form.label="Some item">
> <TextInput text="Some text"/>
> </BoxPane>
> </Form.Section>
> </sections>
> </Form>
>
> </content>
> </Border>
> </tabs>
> </TabPane>
> </right>
> </SplitPane>
> </content>
> </Window>
> removing the heading or turning it off with the "showFirstSectionHeading" style fixes the problem but this means headings cannot be used in the form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIVOT-582) IllegalArgumentException : width is
negative when using Form Heading
Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noel Grandin resolved PIVOT-582.
--------------------------------
Fix Version/s: 2.0
Resolution: Fixed
> IllegalArgumentException : width is negative when using Form Heading
> --------------------------------------------------------------------
>
> Key: PIVOT-582
> URL: https://issues.apache.org/jira/browse/PIVOT-582
> Project: Pivot
> Issue Type: Bug
> Components: wtk-terra
> Affects Versions: 1.5
> Environment: mac os x 10.6, java 6
> Reporter: A.J.
> Assignee: Noel Grandin
> Fix For: 2.0
>
>
> Receiving an exception "java.lang.IllegalArgumentException: width is negative." message when trying to add a heading in a Form container embedded within a Border > TabPane > SplitPane container hierarchy.
> Bug can be reproduced with the following wtkx :
> <Window title="Form Bug" maximized="true"
> xmlns:wtkx="http://pivot.apache.org/wtkx"
> xmlns="org.apache.pivot.wtk">
> <content>
> <SplitPane orientation="horizontal" splitRatio="0.3">
> <left>
> <TabPane>
> <tabs>
> <Border TabPane.label="Left Part">
> <content>
> <Label text="Left content" />
> </content>
> </Border>
> </tabs>
> </TabPane>
> </left>
> <right>
> <TabPane>
> <tabs>
> <Border TabPane.label="Right Part">
> <content>
>
> <Form styles="{showFirstSectionHeading:true}">
> <sections>
> <Form.Section heading="Some heading">
> <BoxPane Form.label="Some item">
> <TextInput text="Some text"/>
> </BoxPane>
> </Form.Section>
> </sections>
> </Form>
>
> </content>
> </Border>
> </tabs>
> </TabPane>
> </right>
> </SplitPane>
> </content>
> </Window>
> removing the heading or turning it off with the "showFirstSectionHeading" style fixes the problem but this means headings cannot be used in the form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (PIVOT-582) IllegalArgumentException : width is
negative when using Form Heading
Posted by "Greg Brown (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Brown updated PIVOT-582:
-----------------------------
Fix Version/s: 1.5.1
(was: 2.0)
> IllegalArgumentException : width is negative when using Form Heading
> --------------------------------------------------------------------
>
> Key: PIVOT-582
> URL: https://issues.apache.org/jira/browse/PIVOT-582
> Project: Pivot
> Issue Type: Bug
> Components: wtk-terra
> Affects Versions: 1.5
> Environment: mac os x 10.6, java 6
> Reporter: A.J.
> Assignee: Noel Grandin
> Fix For: 1.5.1
>
>
> Receiving an exception "java.lang.IllegalArgumentException: width is negative." message when trying to add a heading in a Form container embedded within a Border > TabPane > SplitPane container hierarchy.
> Bug can be reproduced with the following wtkx :
> <Window title="Form Bug" maximized="true"
> xmlns:wtkx="http://pivot.apache.org/wtkx"
> xmlns="org.apache.pivot.wtk">
> <content>
> <SplitPane orientation="horizontal" splitRatio="0.3">
> <left>
> <TabPane>
> <tabs>
> <Border TabPane.label="Left Part">
> <content>
> <Label text="Left content" />
> </content>
> </Border>
> </tabs>
> </TabPane>
> </left>
> <right>
> <TabPane>
> <tabs>
> <Border TabPane.label="Right Part">
> <content>
>
> <Form styles="{showFirstSectionHeading:true}">
> <sections>
> <Form.Section heading="Some heading">
> <BoxPane Form.label="Some item">
> <TextInput text="Some text"/>
> </BoxPane>
> </Form.Section>
> </sections>
> </Form>
>
> </content>
> </Border>
> </tabs>
> </TabPane>
> </right>
> </SplitPane>
> </content>
> </Window>
> removing the heading or turning it off with the "showFirstSectionHeading" style fixes the problem but this means headings cannot be used in the form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (PIVOT-582) IllegalArgumentException : width is
negative when using Form Heading
Posted by "Noel Grandin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noel Grandin reassigned PIVOT-582:
----------------------------------
Assignee: Noel Grandin
> IllegalArgumentException : width is negative when using Form Heading
> --------------------------------------------------------------------
>
> Key: PIVOT-582
> URL: https://issues.apache.org/jira/browse/PIVOT-582
> Project: Pivot
> Issue Type: Bug
> Components: wtk-terra
> Affects Versions: 1.5
> Environment: mac os x 10.6, java 6
> Reporter: A.J.
> Assignee: Noel Grandin
>
> Receiving an exception "java.lang.IllegalArgumentException: width is negative." message when trying to add a heading in a Form container embedded within a Border > TabPane > SplitPane container hierarchy.
> Bug can be reproduced with the following wtkx :
> <Window title="Form Bug" maximized="true"
> xmlns:wtkx="http://pivot.apache.org/wtkx"
> xmlns="org.apache.pivot.wtk">
> <content>
> <SplitPane orientation="horizontal" splitRatio="0.3">
> <left>
> <TabPane>
> <tabs>
> <Border TabPane.label="Left Part">
> <content>
> <Label text="Left content" />
> </content>
> </Border>
> </tabs>
> </TabPane>
> </left>
> <right>
> <TabPane>
> <tabs>
> <Border TabPane.label="Right Part">
> <content>
>
> <Form styles="{showFirstSectionHeading:true}">
> <sections>
> <Form.Section heading="Some heading">
> <BoxPane Form.label="Some item">
> <TextInput text="Some text"/>
> </BoxPane>
> </Form.Section>
> </sections>
> </Form>
>
> </content>
> </Border>
> </tabs>
> </TabPane>
> </right>
> </SplitPane>
> </content>
> </Window>
> removing the heading or turning it off with the "showFirstSectionHeading" style fixes the problem but this means headings cannot be used in the form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIVOT-582) IllegalArgumentException : width is
negative when using Form Heading
Posted by "dutrieux (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIVOT-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894354#action_12894354 ]
dutrieux commented on PIVOT-582:
--------------------------------
If you add a other Form.Section with heading or not you have everytime the same issue.
> IllegalArgumentException : width is negative when using Form Heading
> --------------------------------------------------------------------
>
> Key: PIVOT-582
> URL: https://issues.apache.org/jira/browse/PIVOT-582
> Project: Pivot
> Issue Type: Bug
> Components: wtk-terra
> Affects Versions: 1.5
> Environment: mac os x 10.6, java 6
> Reporter: A.J.
> Assignee: Noel Grandin
> Fix For: 2.0
>
>
> Receiving an exception "java.lang.IllegalArgumentException: width is negative." message when trying to add a heading in a Form container embedded within a Border > TabPane > SplitPane container hierarchy.
> Bug can be reproduced with the following wtkx :
> <Window title="Form Bug" maximized="true"
> xmlns:wtkx="http://pivot.apache.org/wtkx"
> xmlns="org.apache.pivot.wtk">
> <content>
> <SplitPane orientation="horizontal" splitRatio="0.3">
> <left>
> <TabPane>
> <tabs>
> <Border TabPane.label="Left Part">
> <content>
> <Label text="Left content" />
> </content>
> </Border>
> </tabs>
> </TabPane>
> </left>
> <right>
> <TabPane>
> <tabs>
> <Border TabPane.label="Right Part">
> <content>
>
> <Form styles="{showFirstSectionHeading:true}">
> <sections>
> <Form.Section heading="Some heading">
> <BoxPane Form.label="Some item">
> <TextInput text="Some text"/>
> </BoxPane>
> </Form.Section>
> </sections>
> </Form>
>
> </content>
> </Border>
> </tabs>
> </TabPane>
> </right>
> </SplitPane>
> </content>
> </Window>
> removing the heading or turning it off with the "showFirstSectionHeading" style fixes the problem but this means headings cannot be used in the form.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.