You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Pierre Smits (JIRA)" <ji...@apache.org> on 2015/09/17 13:11:45 UTC

[jira] [Updated] (OFBIZ-6623) Have correct field positioning in the row

     [ https://issues.apache.org/jira/browse/OFBIZ-6623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pierre Smits updated OFBIZ-6623:
--------------------------------
    Description: 
Imagine the following example illustrating this:
{code}
<form etc>
<field id="1" name="name1" etc/>
<field id="2" name="name2" position="2" etc/>
<field id="3" name="name3" position="2" etc/>
<field id="4" name="name4" position="4" etc/>
</form>
{code}
This should render as follows:
The first row should have field id="1" and field id="2" at positions 1 and 2 as there is a field without an explicit position (field id="1").
As field id="3" has the same position as field id="2" and as there is no field preceding without an explicit position or with an explicit position lower than the position of the field,  a new row should be started. The preceding row position should then be filled with a dummy field. 

With respect to field id="4" this should be applied the same way. In this case there is not a field without positioning, but there is a field with a lower position. Thus the position between the two fields should be filled with a dummy field.

This will ensure that fields are correctly positioned in a row of fields.

  was:
Imagine the following example illustrating this:
{code}
<form etc>
<field id="1" name="name1" etc/>
<field id="2" name="name2" position="2" etc/>
<field id="3" name="name3" position="2" etc/>
<field id="4" name="name4" position="4" etc/>
</form>
{code}
This should render as follows:
The first row should have field id="1" and field id="2" at positions 1 and 2
As field id="3" has the same position as field id="2" and as there is no field preceding that without an explicit position or with an explicit position lower than  the position of the field,  a new row should be started. The preceding row position should then be filled with a dummy field. 

With respect to field id="4" this should be applied the same way. In this case there is not a field without positioning, but there is a field with a lower position. Thus the position between the two fields should be filled with a dummy field.

This will ensure that fields are correctly positioned in a row of fields.


> Have correct field positioning in the row
> -----------------------------------------
>
>                 Key: OFBIZ-6623
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6623
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: Pierre Smits
>
> Imagine the following example illustrating this:
> {code}
> <form etc>
> <field id="1" name="name1" etc/>
> <field id="2" name="name2" position="2" etc/>
> <field id="3" name="name3" position="2" etc/>
> <field id="4" name="name4" position="4" etc/>
> </form>
> {code}
> This should render as follows:
> The first row should have field id="1" and field id="2" at positions 1 and 2 as there is a field without an explicit position (field id="1").
> As field id="3" has the same position as field id="2" and as there is no field preceding without an explicit position or with an explicit position lower than the position of the field,  a new row should be started. The preceding row position should then be filled with a dummy field. 
> With respect to field id="4" this should be applied the same way. In this case there is not a field without positioning, but there is a field with a lower position. Thus the position between the two fields should be filled with a dummy field.
> This will ensure that fields are correctly positioned in a row of fields.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)