[haiku-development] Layout problems

Hello,

I'm working on bug #190 and I'm having some problems with the layout system. The top view takes up all the space, with its text way down at the bottom, like so:

|--------------------------|
| |----------------------| |
| |                      | |
| |                      | |
| |                      | |
| |                      | |
| |                      | |
| |                      | |
| |                      | |
| |                      | |
| | Text1                | |
| |----------------------| |
|                          |
| |----------------------| |
| | Text2                | |
| |----------------------| |
|--------------------------|

I tried adding glue after the second view, and then the glue and the top view get about the same amount of space, and the second view still takes up just what it needs, like so:

|--------------------------|
| |----------------------| |
| |                      | |
| |                      | |
| |                      | |
| | Text1                | |
| |----------------------| |
|                          |
| |----------------------| |
| | Text2                | |
| |----------------------| |
|                          |
| |----------------------| |
| |                      | |
| |                      | |
| |                      | |
| |                      | |
| |----------------------| |
|--------------------------|

I tried looking through the list archives, but when I left the search too general, I got more results than I could efficiently look through, and when I narrowed the search, none of the results helped me.

On the plus side, it looks like using the layout system here will also fix bug #1801, since the text indicated in that bug is no longer cut off. (Of course, at the moment, the information is all squeezed down at the bottom because of the above problem, but at least it's all visible.)


Other related posts: