[haiku-development] Putting a BGridView inside BScrollView

  • From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 14 Nov 2010 12:19:10 +0100

Hi,

In the code inside the comment:
http://dev.haiku-os.org/browser/haiku/trunk/src/libs/print/libprint/JobSetupDlg.cpp?rev=39423#L370
I want to put a BGridView inside a BScrollView using the Layout API.
However when the window is displayed, the parent view containing the 
BScrollView still has the size of the BGridView, and the BScrollView 
is vertically centered inside the parent view.

Parent view:
+------+
|      |
|+----+|
||    || <- BScrollView
|+----+|
|      |
+------+

BTW in the code the parent view is a BBox.

Any ideas what I do wrong and how to solve the problem?

Bye,
Michael

Other related posts: