Skip to content

Commit

Permalink
GUI layout cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hill committed Nov 28, 2016
1 parent 7131dbb commit 3cbe6af
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Launcher/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ MainWindow::MainWindow(BRect size, window_look look)
fView = new MainView(frameRect);
fInfoView = new BStringView("InfoView","");

BLayoutBuilder::Group<>(this, B_VERTICAL)
BLayoutBuilder::Group<>(this, B_VERTICAL, 0)
// Get rid of pixels at edges of list view
.SetInsets(-3, 0, -3, 3)
.SetInsets(-3, 0, -3, 0)
.Add(fView)
.AddGroup(B_VERTICAL, B_USE_DEFAULT_SPACING)
.AddGroup(B_VERTICAL)
// align text vertically centered
.SetInsets(5, -8, 0, 0)
.SetInsets(5, 2, 0, 2)
.Add(fInfoView);

SetSizeLimits(fView->TabFrame(fView->CountTabs()-1).right + 5, 9999, 200, 9999);
Expand Down Expand Up @@ -52,7 +52,7 @@ MainWindow::MessageReceived(BMessage* msg)
{
BString textStr;
msg->FindString(EL_INFO_STRING, &textStr);
fInfoView->TruncateString(&textStr, B_TRUNCATE_SMART, Bounds().Width());
fInfoView->TruncateString(&textStr, B_TRUNCATE_SMART, Bounds().Width()-2);
fInfoView->SetText(textStr);
fInfoView->Invalidate();
break;
Expand Down

0 comments on commit 3cbe6af

Please sign in to comment.