[haiku-development] Re: Layout api bug or user error

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 30 Oct 2009 21:33:42 +0800

On 2009-10-30 at 18:20:36 [+0800], Stefano Ceccherini 
<stefano.ceccherini@xxxxxxxxx> wrote:
> I'm adapting an application of mine to the haiku layout api, but I hit
> a problem which could be a bug in the layout implementation, or just
> an error from my side:
> 
> The attached code will display a window which can't be resized
> horizontally at all.

A BButton has a maximum width (equal to its preferred width). In your case 
fStartStopButton is thus limiting your maximum window width. You can set an 
explicit maximum width on the button or add glue in the button's horizontal 
group to override this behavior.

CU, Ingo

Other related posts: