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:
Adrien Destugues
2019-12-22 20:59:26 +00:00
committed by waddlesplash
parent d7690f68a8
commit 4766e7fe56
3 changed files with 3 additions and 2 deletions
@@ -29,6 +29,7 @@ AttributesView::AttributesView(Model* model)
{
SetName(B_TRANSLATE("Attributes"));
AddChild(fListView);
GroupLayout()->SetInsets(-1, -1, -1, -1);
float nameWidth = StringWidth("SYS:PACKAGE_FILE") + 16;
float typeMaxWidth = StringWidth(B_TRANSLATE(
+1 -1
View File
@@ -84,7 +84,7 @@ HeaderView::HeaderView(Model* model)
fIconRect.Set(0, 0, B_LARGE_ICON - 1, B_LARGE_ICON - 1);
// Offset taken from BAlert
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 magic numbers are used to properly calculate the rect so that
+1 -1
View File
@@ -98,7 +98,7 @@ BInfoWindow::BInfoWindow(Model* model, int32 group_index,
:
BWindow(BInfoWindow::InfoWindowRect(),
"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),
fModel(model),
fStopCalc(false),