pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Noel Grandin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIVOT-331) Form's vertical spacing should be baseline-aware
Date Wed, 05 May 2010 11:57:03 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864295#action_12864295
] 

Noel Grandin commented on PIVOT-331:
------------------------------------

Looking at this again, I can see some very elegant solutions. 

But perhaps, given that this use-case is not going to be that common, we can simply support
the brute-force approach of allowing the designer to set a verticalSpacing style on each individual
Form.Field?

Then the designer would be free to apply the necessary corrections to only those fields that
needed it.

Perhaps not the most elegant solution, but it has the benefit of simplicity  :-)

> Form's vertical spacing should be baseline-aware
> ------------------------------------------------
>
>                 Key: PIVOT-331
>                 URL: https://issues.apache.org/jira/browse/PIVOT-331
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>            Reporter: Todd Volkert
>            Priority: Minor
>             Fix For: 2.0
>
>         Attachments: form-layout-mockup.png, screenshot-before-and-after.png
>
>
> Graphic designers often want to lay out forms such that the vertical spacing between
the baselines of the form elements is predictable.  Though Pivot's Form can now align the
baselines of its fields with their labels, it provides no way to coordinate the vertical spacing
of the baselines.  Take, for example, the following WTKX:
> <Window maximized="true"
>     xmlns:wtkx="http://pivot.apache.org/wtkx"
>     xmlns="org.apache.pivot.wtk">
>   <content>
>     <CardPane styles="{padding:10}">
>       <Form>
>         <sections>
>           <Form.Section>
>             <Label Form.label="Field 1" text="Foo"/>
>             <Label Form.label="Field 2" text="Bar"/>
>             <TextInput Form.label="Field 3" text="Baz"/>
>             <TextInput Form.label="Field 4" text="Something Else"/>
>           </Form.Section>
>         </sections>
>       </Form>
>     </CardPane>
>   </content>
> </Window>
> It produces the attached screenshot, where the vertical spacing between the baselines
is unpredictable, even though the form's "verticalSpacing" style is evenly applied.  Contrast
this with the attached mockup provided by a graphic designer, where they clearly specify the
layout in terms of spacing between baselines.
> It's not clear how best to achieve this feature from an architectural point of view.
 Ideas are welcome in this ticket.

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


Mime
View raw message