Tracker InfoWindow: collapse borders and make resizable
Fixes #15344. Change-Id: I3560137248babb88e9475efb775675decb4d1181 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2050 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
d7690f68a8
commit
4766e7fe56
@@ -29,6 +29,7 @@ AttributesView::AttributesView(Model* model)
|
|||||||
{
|
{
|
||||||
SetName(B_TRANSLATE("Attributes"));
|
SetName(B_TRANSLATE("Attributes"));
|
||||||
AddChild(fListView);
|
AddChild(fListView);
|
||||||
|
GroupLayout()->SetInsets(-1, -1, -1, -1);
|
||||||
|
|
||||||
float nameWidth = StringWidth("SYS:PACKAGE_FILE") + 16;
|
float nameWidth = StringWidth("SYS:PACKAGE_FILE") + 16;
|
||||||
float typeMaxWidth = StringWidth(B_TRANSLATE(
|
float typeMaxWidth = StringWidth(B_TRANSLATE(
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ HeaderView::HeaderView(Model* model)
|
|||||||
fIconRect.Set(0, 0, B_LARGE_ICON - 1, B_LARGE_ICON - 1);
|
fIconRect.Set(0, 0, B_LARGE_ICON - 1, B_LARGE_ICON - 1);
|
||||||
// Offset taken from BAlert
|
// Offset taken from BAlert
|
||||||
fIconRect.OffsetBy(kIconHorizOffset, kIconVertOffset);
|
fIconRect.OffsetBy(kIconHorizOffset, kIconVertOffset);
|
||||||
SetExplicitMinSize(BSize(B_SIZE_UNSET, B_LARGE_ICON + 2 * kIconVertOffset));
|
SetExplicitSize(BSize(B_SIZE_UNSET, B_LARGE_ICON + 2 * kIconVertOffset));
|
||||||
|
|
||||||
// The title rect
|
// The title rect
|
||||||
// The magic numbers are used to properly calculate the rect so that
|
// The magic numbers are used to properly calculate the rect so that
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ BInfoWindow::BInfoWindow(Model* model, int32 group_index,
|
|||||||
:
|
:
|
||||||
BWindow(BInfoWindow::InfoWindowRect(),
|
BWindow(BInfoWindow::InfoWindowRect(),
|
||||||
"InfoWindow", B_TITLED_WINDOW,
|
"InfoWindow", B_TITLED_WINDOW,
|
||||||
B_NOT_RESIZABLE | B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
|
B_NOT_ZOOMABLE | B_AUTO_UPDATE_SIZE_LIMITS,
|
||||||
B_CURRENT_WORKSPACE),
|
B_CURRENT_WORKSPACE),
|
||||||
fModel(model),
|
fModel(model),
|
||||||
fStopCalc(false),
|
fStopCalc(false),
|
||||||
|
|||||||
Reference in New Issue
Block a user