From 5eb5a9be1a53fa05b996e0b66f6ee485f7029509 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Mon, 14 Mar 2011 00:25:31 +0000 Subject: [PATCH] Update table demo. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40942 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/libs/alm/TableDemo.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/tests/libs/alm/TableDemo.cpp b/src/tests/libs/alm/TableDemo.cpp index 1575967cfd..9f428496c9 100644 --- a/src/tests/libs/alm/TableDemo.cpp +++ b/src/tests/libs/alm/TableDemo.cpp @@ -25,11 +25,9 @@ public: Column* c1 = layout->AddColumn(layout->Left(), layout->Right()); Row* r1 = layout->AddRow(layout->Top(), NULL); - Row* r3 = layout->AddRow(NULL, layout->Bottom()); - r1->SetNext(r3); - Row* r2 = layout->AddRow(); - r2->InsertAfter(r1); - + Row* r2 = layout->AddRow(r1->Bottom(), NULL); + Row* r3 = layout->AddRow(r2->Bottom(), layout->Bottom()); + BButton* b1 = new BButton("A1"); layout->AddView(b1, r1, c1); b1->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP)); @@ -43,9 +41,6 @@ public: layout->AddView(b3, r3, c1); b3->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM)); - r2->HasSameHeightAs(r1); - r3->HasSameHeightAs(r1); - // test size limits BSize min = layout->MinSize(); BSize max = layout->MaxSize();