preferences/datatranslations Scale window with font size (Fix Bug #13166)

* Specifies minimum window size based on system font settings
   (prevents clipping of message with large fonts)

Change-Id: I851e0c3604816a4e935178d1a4f33de7b7478060
Reviewed-on: https://review.haiku-os.org/c/1017
Reviewed-by: Axel Dörfler <[email protected]>
This commit is contained in:
Rob Gill
2019-02-08 09:14:21 +00:00
committed by Axel Dörfler
parent 897792ef3f
commit 8341933096
@@ -219,6 +219,11 @@ DataTranslationsWindow::_ShowInfoView()
group->GroupLayout()->SetInsets(spacing, spacing, spacing, spacing);
fRightBox->AddChild(group);
fConfigView = group;
fConfigView->SetExplicitMinSize(
BSize(ceilf(spacing * be_plain_font->Size() * 0.7)
- fTranslatorListView->Frame().Width(),
ceilf(spacing * be_plain_font->Size() * 0.4)));
}