diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-12-08 01:14:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-12-08 01:14:07 +0000 |
| commit | d12f444eadb2aafbc61b8b62006d9aa85fc40ba7 (patch) | |
| tree | a273d33e4794d8a418ab4f0b827b59ba2af0dcb5 /src | |
| parent | 8b2a3f31b6b4238d8534549f495e7276174ddfba (diff) | |
Layout parent sizers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/i18n_hook.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wx/i18n_hook.cc b/src/wx/i18n_hook.cc index bb185526e..f7bc4829d 100644 --- a/src/wx/i18n_hook.cc +++ b/src/wx/i18n_hook.cc @@ -40,7 +40,15 @@ I18NHook::handle (wxMouseEvent& ev) InstantI18NDialog* d = new InstantI18NDialog (_window, get_text()); d->ShowModal(); set_text (d->get()); - _window->GetContainingSizer()->Layout(); + + wxWindow* w = _window; + while (w) { + if (w->GetContainingSizer()) { + w->GetContainingSizer()->Layout(); + } + w = w->GetParent(); + } + ev.Skip (); boost::filesystem::path file = "instant_i18n"; |
