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:
@@ -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)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user