Ensure that the fonts collector destination label gets wrapped on OS X

This commit is contained in:
Thomas Goyne 2015-11-06 20:12:52 -08:00
parent 4f34784370
commit 0b2d0d40d5

View file

@ -385,6 +385,12 @@ void DialogFontsCollector::UpdateControls() {
} }
} }
} }
#ifdef __APPLE__
// wxStaticText auto-wraps everywhere but OS X
dest_label->Wrap(dest_label->GetParent()->GetSize().GetWidth() - 20);
Layout();
#endif
} }
void DialogFontsCollector::OnAddText(ValueEvent<color_str_pair> &event) { void DialogFontsCollector::OnAddText(ValueEvent<color_str_pair> &event) {