Fix for ticket #12978 - Tracker GetInfo window layout problem

Signed-off-by: Axel Dörfler <[email protected]>
This commit is contained in:
Tsimblist
2017-01-08 23:20:57 +01:00
committed by Axel Dörfler
parent bea76b8aa1
commit 5f8edc9c51
+8 -1
View File
@@ -368,7 +368,14 @@ BInfoWindow::Show()
float width = font->StringWidth("This is a really long string which we"
"will use to find the window width");
float height = font->Size() * 15;
// window height depends on file type
int lines = 7;
if (fModel->IsSymLink())
lines++;
if (fModel->IsExecutable())
lines += 2;
float height = font->Size() * (lines * 2 + 1);
ResizeTo(width, height);
BRect attrRect(Bounds());