Regarding pbox, this reminds me of weights in android layouts, except instead of defining the explicit percentage, its derived from the value divided by the sum of the parents children. So 3 children with a weight of 1 gives a total weight of 3, and thus ~= 33.3%
Change one of the children's weight to 2 and now total weight is 4 and that child takes up 50% with the other two taking up 25% each.
You can also explicitly state what the sum should be on the parent.
Overall, I find this approach works well as it provides a bit of flexibility but its function is not immediately obvious to newcomers I find.
--
You received this message because you are subscribed to the Google Groups "go-uik" group.
To view this discussion on the web visit https://groups.google.com/d/msg/go-uik/-/PlAguVRNduYJ.
To post to this group, send email to go-...@googlegroups.com.
To unsubscribe from this group, send email to go-uik+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/go-uik?hl=en.
And also, even though I didn't state it, this approach would inheritantly work with input like 67 or 2/3, just depends on implementation details and constraints that might seem fitting for keeping ppl from writing whacky layouts for the sanity of all
To unsubscribe from this group, send email to go-uik+unsubscribe@googlegroups.com.
To unsubscribe from this group, send email to go-uik+unsubscribe@googlegroups.com.