From 81c40be9fc26ff9a382a9b2d71bc747dabd2ace2 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Fri, 26 Nov 2010 04:23:13 +0000 Subject: [PATCH] Simplify the Pinwheel demo according to the last commit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39642 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tests/libs/alm/Pinwheel.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/tests/libs/alm/Pinwheel.cpp b/src/tests/libs/alm/Pinwheel.cpp index 004ccd4076..1e81f07173 100644 --- a/src/tests/libs/alm/Pinwheel.cpp +++ b/src/tests/libs/alm/Pinwheel.cpp @@ -45,17 +45,14 @@ public: YTab* y1 = layout->AddYTab(); YTab* y2 = layout->AddYTab(); - Area* a1 = layout->AddView(button1, layout->Left(), layout->Top(), x2, + layout->AddView(button1, layout->Left(), layout->Top(), x2, y1); layout->AddView(button2, x2, layout->Top(), layout->Right(), y2); - Area* a3 = layout->AddView(button3, x1, y2, layout->Right(), + layout->AddView(button3, x1, y2, layout->Right(), layout->Bottom()); layout->AddView(button4, layout->Left(), y1, x1, layout->Bottom()); layout->AddView(textView1, x1, y1, x2, y2); - a1->SetWidthAs(a3); - a1->SetHeightAs(a3); - // alternative setup /* layout->AddView(button1);