Some Layout fixed to 3dRendering for different font sizes.
Add glue between the gears view and the rest to make sure that the rest butts up against GearsView. Update the Preferred and Max size so that the spacing is appropriate. Make the window width smaller and allow the views to expand it. The ColumnListViews are still not set to respect different font sizes but overall it works better at smaller font sizes.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
CapabilitiesView::CapabilitiesView()
|
||||
:
|
||||
BGroupView(B_TRANSLATE("Capabilities"), B_VERTICAL),
|
||||
fCapabilitiesList(new BColumnListView("CapabilitiesList", B_FOLLOW_ALL))
|
||||
fCapabilitiesList(new BColumnListView("CapabilitiesList", 0))
|
||||
{
|
||||
// add the columns
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
ExtensionsView::ExtensionsView()
|
||||
:
|
||||
BGroupView(B_TRANSLATE("Extensions"), B_VERTICAL),
|
||||
fExtensionsList(new BColumnListView("ExtensionsList", B_FOLLOW_ALL))
|
||||
fExtensionsList(new BColumnListView("ExtensionsList", 0))
|
||||
{
|
||||
// add the columns
|
||||
|
||||
|
||||
@@ -23,7 +23,8 @@ GearsView::GearsView()
|
||||
BView("GearsView", B_WILL_DRAW),
|
||||
fGears(NULL)
|
||||
{
|
||||
SetExplicitPreferredSize(BSize(64.0 + 5.0, B_SIZE_UNLIMITED));
|
||||
SetExplicitMinSize(BSize(64.0 + 10.0, B_SIZE_UNSET));
|
||||
SetExplicitPreferredSize(BSize(64.0 + 10.0, B_SIZE_UNLIMITED));
|
||||
SetViewColor(ui_color(B_PANEL_BACKGROUND_COLOR));
|
||||
_InitGearsBitmap();
|
||||
}
|
||||
|
||||
@@ -76,6 +76,7 @@ OpenGLView::OpenGLView()
|
||||
.Add(menuField)
|
||||
.Add(tabView)
|
||||
.End()
|
||||
.AddGlue()
|
||||
.End();
|
||||
}
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <Application.h>
|
||||
#include <Catalog.h>
|
||||
#include <GroupLayout.h>
|
||||
|
||||
#include "OpenGLView.h"
|
||||
|
||||
|
||||
@@ -22,7 +23,7 @@
|
||||
|
||||
OpenGLWindow::OpenGLWindow()
|
||||
:
|
||||
BWindow(BRect(50, 50, 450 + 64, 300),
|
||||
BWindow(BRect(50, 50, 300, 300),
|
||||
B_TRANSLATE_SYSTEM_NAME("3D Rendering"), B_TITLED_WINDOW,
|
||||
B_NOT_RESIZABLE | B_ASYNCHRONOUS_CONTROLS | B_NOT_ZOOMABLE
|
||||
| B_AUTO_UPDATE_SIZE_LIMITS)
|
||||
|
||||
Reference in New Issue
Block a user