Mouse prefs: truncated string in Suomi translation
* Set the minimal size of the double click test area so the string fits, in any language. * Fixes #5746.
This commit is contained in:
@@ -115,9 +115,12 @@ SettingsView::SettingsView(MouseSettings& settings)
|
|||||||
fMouseView = new MouseView(fSettings);
|
fMouseView = new MouseView(fSettings);
|
||||||
|
|
||||||
// Create the "Double-click test area" text box...
|
// Create the "Double-click test area" text box...
|
||||||
|
const char* label = B_TRANSLATE("Double-click test area");
|
||||||
BTextControl* doubleClickTextControl = new BTextControl(NULL,
|
BTextControl* doubleClickTextControl = new BTextControl(NULL,
|
||||||
B_TRANSLATE("Double-click test area"), NULL);
|
label, NULL);
|
||||||
doubleClickTextControl->SetAlignment(B_ALIGN_LEFT, B_ALIGN_CENTER);
|
doubleClickTextControl->SetAlignment(B_ALIGN_LEFT, B_ALIGN_CENTER);
|
||||||
|
doubleClickTextControl->SetExplicitMinSize(
|
||||||
|
BSize(StringWidth(label), B_SIZE_UNSET));
|
||||||
|
|
||||||
// Add the "Mouse focus mode" pop up menu
|
// Add the "Mouse focus mode" pop up menu
|
||||||
fFocusMenu = new BPopUpMenu(B_TRANSLATE("Click to focus and raise"));
|
fFocusMenu = new BPopUpMenu(B_TRANSLATE("Click to focus and raise"));
|
||||||
|
|||||||
Reference in New Issue
Block a user