Adjust the test apps.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler
2010-09-23 00:04:50 +00:00
parent 40d939a43f
commit 3ccba98ce3
2 changed files with 8 additions and 8 deletions
+6 -7
View File
@@ -38,19 +38,18 @@ public:
a1->SetRightInset(10);
layout->AddArea(layout->Left(), y1, layout->Right(), y2, button2);
button2->SetExplicitAlignment(
BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP));
button2->SetExplicitAlignment(BAlignment(B_ALIGN_LEFT, B_ALIGN_TOP));
Area* a3 = layout->AddArea(layout->Left(), y2, layout->Right(), y3,
button3);
button3->SetExplicitAlignment(
BAlignment(B_ALIGN_HORIZONTAL_CENTER, B_ALIGN_VERTICAL_CENTER));
a3->HasSameHeightAs(a1);
button3->SetExplicitAlignment(BAlignment(B_ALIGN_HORIZONTAL_CENTER,
B_ALIGN_VERTICAL_CENTER));
a3->SetHeightAs(a1);
layout->AddArea(layout->Left(), y3, layout->Right(), layout->Bottom(),
button4);
button4->SetExplicitAlignment(
BAlignment(B_ALIGN_RIGHT, B_ALIGN_BOTTOM));
button4->SetExplicitAlignment(BAlignment(B_ALIGN_RIGHT,
B_ALIGN_BOTTOM));
}
private:
+2 -1
View File
@@ -55,7 +55,8 @@ public:
layout->AddArea(layout->Left(), y1, x1, layout->Bottom(), button4);
layout->AddArea(x1, y1, x2, y2, textView1);
a1->HasSameSizeAs(a3);
a1->SetWidthAs(a3);
a1->SetHeightAs(a3);
}
private: