[haiku-commits] Re: haiku: hrev45809 - src/kits/interface

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 3 Jul 2013 11:23:58 -0400

On Tue, Jul 2, 2013 at 1:56 PM, Ingo Weinhold <ingo_weinhold@xxxxxx> wrote:
> I don't know about "all problems", but when the BBox's child is a group, it
> would indeed be more correct. More generally BBox could check its child's
> alignment and propagate B_ALIGN_USE_FULL_* accordingly.

If no one objects, I can adjust accordingly tonight. To make sure I
understand the proposal correctly, if the box's child is a group, and
that group is a vertical group, then the box should return a default
alignment with use full width, while for a horizontal group it would
be use full height? Is it safe to assume that that behavior should
only apply for BGroupLayout, or are there others for which that might
make sense?

Also, are there any desired adjustments to the changes I'd made to
some of the interface kit controls regarding max size? As I said, my
original intent was simply to make the behavior a bit more intuitive,
since I initially got bitten by this by simply attempting to put two
checkboxes into a horizontal group and then wanting to left align them
by adding glue afterwards, just as one would do with a set of
BButtons. Since the checkbox doesn't benefit from extending further
than its label, and the max size behavior can't be elucidated from the
class header alone, the result was decidedly counterintuitive, which
is what I intended to resolve with minimal disruption to existing
usage.

Regards,

Rene

Other related posts: