Update OpenGL preferences to accommodate for the fact that empty columns in a BGridLayout are now collapsed to nothingness. Fixes part of #7446.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41257 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -82,9 +82,11 @@ CapabilitiesView::CapabilitiesView()
|
||||
layout->AddItem(BSpaceLayoutItem::CreateGlue(), 0, layout->CountRows(),
|
||||
layout->CountColumns(), 1);
|
||||
|
||||
float spacing = be_control_look->DefaultItemSpacing();
|
||||
layout->SetHorizontalSpacing(spacing / 2.0f);
|
||||
// divide by two to compensate for empty column 1
|
||||
// Set horizontal spacing to 0, and use the middle column as
|
||||
// variable-width spacing (like layout 'glue').
|
||||
layout->SetHorizontalSpacing(0);
|
||||
layout->SetMinColumnWidth(1, be_control_look->DefaultLabelSpacing());
|
||||
layout->SetMaxColumnWidth(1, B_SIZE_UNLIMITED);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -51,9 +51,11 @@ InfoView::InfoView()
|
||||
layout->AddItem(BSpaceLayoutItem::CreateGlue(), 0, layout->CountRows(),
|
||||
layout->CountColumns(), 1);
|
||||
|
||||
float spacing = be_control_look->DefaultItemSpacing();
|
||||
layout->SetHorizontalSpacing(spacing / 2.0f);
|
||||
// divide by two to compensate for empty column 1
|
||||
// Set horizontal spacing to 0, and use the middle column as
|
||||
// variable-width spacing (like layout 'glue').
|
||||
layout->SetHorizontalSpacing(0);
|
||||
layout->SetMinColumnWidth(1, be_control_look->DefaultLabelSpacing());
|
||||
layout->SetMaxColumnWidth(1, B_SIZE_UNLIMITED);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user