Applied patch for ticket #2042 by Philippe Saint-Pierre: List box was overlapping the label of the list box.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24857 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer
2008-04-07 19:04:07 +00:00
parent 8b5e5656f4
commit d4f7b8428a
+9 -9
View File
@@ -194,15 +194,15 @@ void PrintersWindow::BuildGUI()
// Resize all buttons to maximum width and align them to the right // Resize all buttons to maximum width and align them to the right
float xPos = printersBox->Bounds().Width()-boxInset-maxWidth; float xPos = printersBox->Bounds().Width()-boxInset-maxWidth;
addButton->MoveTo(xPos, boxInset +5); addButton->MoveTo(xPos, boxInset +8);
addButton->ResizeTo(maxWidth, addButton->Bounds().Height()); addButton->ResizeTo(maxWidth, addButton->Bounds().Height());
fRemove->MoveTo(xPos, boxInset + addButton->Bounds().Height() + boxInset +5); fRemove->MoveTo(xPos, boxInset + addButton->Bounds().Height() + boxInset +8);
fRemove->ResizeTo(maxWidth, fRemove->Bounds().Height()); fRemove->ResizeTo(maxWidth, fRemove->Bounds().Height());
fMakeDefault->MoveTo(xPos, boxInset + addButton->Bounds().Height() + fMakeDefault->MoveTo(xPos, boxInset + addButton->Bounds().Height() +
boxInset + fRemove->Bounds().Height() + boxInset + fRemove->Bounds().Height() +
boxInset +5); boxInset +8);
fMakeDefault->ResizeTo(maxWidth, fMakeDefault->Bounds().Height()); fMakeDefault->ResizeTo(maxWidth, fMakeDefault->Bounds().Height());
// Disable all selection-based buttons // Disable all selection-based buttons
@@ -210,8 +210,8 @@ void PrintersWindow::BuildGUI()
fMakeDefault->SetEnabled(false); fMakeDefault->SetEnabled(false);
// Create listview with scroller // Create listview with scroller
BRect listBounds(boxInset, boxInset+5, fMakeDefault->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH, BRect listBounds(boxInset, boxInset+8, fMakeDefault->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,
printersBox->Bounds().Height()-boxInset); printersBox->Bounds().Height()-boxInset-3);
fPrinterListView = new PrinterListView(listBounds); fPrinterListView = new PrinterListView(listBounds);
BScrollView* pscroller = new BScrollView("printer_scroller", fPrinterListView, BScrollView* pscroller = new BScrollView("printer_scroller", fPrinterListView,
B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER); B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER);
@@ -243,10 +243,10 @@ void PrintersWindow::BuildGUI()
// Resize all buttons to maximum width and align them to the right // Resize all buttons to maximum width and align them to the right
xPos = fJobsBox->Bounds().Width()-boxInset-maxWidth; xPos = fJobsBox->Bounds().Width()-boxInset-maxWidth;
cancelButton->MoveTo(xPos, boxInset +5); cancelButton->MoveTo(xPos, boxInset +8);
cancelButton->ResizeTo(maxWidth, cancelButton->Bounds().Height()); cancelButton->ResizeTo(maxWidth, cancelButton->Bounds().Height());
restartButton->MoveTo(xPos, boxInset + cancelButton->Bounds().Height() + boxInset +5); restartButton->MoveTo(xPos, boxInset + cancelButton->Bounds().Height() + boxInset +8);
restartButton->ResizeTo(maxWidth, restartButton->Bounds().Height()); restartButton->ResizeTo(maxWidth, restartButton->Bounds().Height());
// Disable all selection-based buttons // Disable all selection-based buttons
@@ -254,8 +254,8 @@ void PrintersWindow::BuildGUI()
restartButton->SetEnabled(false); restartButton->SetEnabled(false);
// Create listview with scroller // Create listview with scroller
listBounds = BRect(boxInset, boxInset+5, cancelButton->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH, listBounds = BRect(boxInset, boxInset+8, cancelButton->Frame().left - boxInset - B_V_SCROLL_BAR_WIDTH,
fJobsBox->Bounds().Height()-boxInset); fJobsBox->Bounds().Height()-boxInset-3);
fJobListView = new JobListView(listBounds); fJobListView = new JobListView(listBounds);
BScrollView* jscroller = new BScrollView("jobs_scroller", fJobListView, BScrollView* jscroller = new BScrollView("jobs_scroller", fJobListView,
B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER); B_FOLLOW_ALL, B_WILL_DRAW | B_FRAME_EVENTS, false, true, B_FANCY_BORDER);