summaryrefslogtreecommitdiff
path: root/wx+/dir_picker.h
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/dir_picker.h')
-rw-r--r--wx+/dir_picker.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/wx+/dir_picker.h b/wx+/dir_picker.h
index 5f18b6fb..51bd9757 100644
--- a/wx+/dir_picker.h
+++ b/wx+/dir_picker.h
@@ -22,10 +22,14 @@ public:
#ifdef FFS_WIN
//fix wxWidgets localization gap:
wxButton* button = dynamic_cast<wxButton*>(m_pickerIface);
- if (button) button->SetLabel(_("Browse"));
+ if (button)
+ {
+ button->SetLabel(_("Browse")); //button width needs to be adapted for very long translations
+ SetMinSize(button->GetBestSize()); //SetSize and wxButton::SetSize just do nothing!!??
+ }
#endif
}
};
}
-#endif // DIR_PICKER_I18N_H_INCLUDED
+#endif // DIR_PICKER_I18N_H_INCLUDED
bgstack15