#18138 closed defect (fixed)
dijit/layout/LayoutContainer layoutPriority unexpected results
Reported by: | Wouter Hager | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | tbd |
Component: | General | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
When setting the layoutPriority of the top region to 1, the layout design changed from headline to sidebar, while I expected the top priority to become highest. I think that layoutPriority should always weigh more than the design or the DOM order.
Change History (5)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
The docs mention this, so just close this ticket:
However, the layoutPriority setting for child panes overrides the design attribute on the LayoutContainer?. In other words, if the top and bottom sections have a lower layoutPriority then the left and right panes then the top and bottom panes will extend the entire width of the box.
Perhaps it could be emphasized that higher priority means less important to design.
comment:3 Changed 7 years ago by
Owner: | set to Bill Keese <[email protected]…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 7 years ago by
Owner: | set to Bill Keese <[email protected]…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:4 Changed 7 years ago by
However, the layoutPriority setting for child panes overrides the design attribute on the LayoutContainer?. In other words, if the top and bottom sections have a lower layoutPriority then the left and right panes then the top and bottom panes will extend the entire width of the box.
I updated the doc to make this clearer.
Perhaps it could be emphasized that higher priority means less important to design.
Well, "less important to design" doesn't have any concrete meaning to me. The documentation already says:
layoutPriority flag on the children determines which child is closer to the edge (low layoutPriority) and which child is closer to the center (high layoutPriority)
Perhaps it's counterintuitive, but I can't change it now because of backwards compatibility.
So I understand that the priority means closer to center, and consequently less important to layout, but that seems counter-intuitive. Perhaps the priority should be inverted and higher priority should mean further from center and more important to layout.