Community
Participate
Working Groups
There are many cases where checkboxes with their standard "label on the right" rendering end up looking awkward in the UI. This bug tracks adding the option to place the label on the left side and to align the checkbox itself on the second column. This is expected to work particularly well where checkboxes are preceded by a bunch of TextField-based property editors. One important aspect of this is to define the default behavior. We have two modes right now: (1) aligned on the first column and (2) aligned on the second column. Current default is #1. Since we will be adding a third alternative, a good heuristic that reduces the number of times the developer has to manually pick among these options is essential. Troy, could you spend some time thinking about the default presentation heuristic?
I'm in favor of this enhancement. It would help align labels more consistently in some UIs.
I am splitting this enhancement in two. For the first phase, I plan to implement control over different checkbox layouts. We can consider automated selection of the appropriate layout at a late date.
Enhancement implemented. Added "checkbox.layout" hint, with three possible values: "trailing.label" (default), "trailing.label.indented" and "leading label". Added a section on this to the "Enhancements in 0.3" document in the Sapphire Developer Guide. Added a section in the gallery sample that shows and explains different layouts (under Values -> Booleans).
verified on 0.3.0.201105261624
Closing.