Set size of hint window before showing it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2656,6 +2656,8 @@ void wxFrameManager::ShowHint(const wxRect& rect)
|
||||
)
|
||||
m_hint_fadeamt = 0;
|
||||
|
||||
m_hint_wnd->SetSize(rect);
|
||||
|
||||
if (! m_hint_wnd->IsShown())
|
||||
m_hint_wnd->Show();
|
||||
|
||||
@@ -2670,7 +2672,6 @@ void wxFrameManager::ShowHint(const wxRect& rect)
|
||||
if (m_hint_wnd->IsKindOf(CLASSINFO(wxPseudoTransparentFrame)))
|
||||
((wxPseudoTransparentFrame *)m_hint_wnd)->SetTransparent(m_hint_fadeamt);
|
||||
#endif
|
||||
m_hint_wnd->SetSize(rect);
|
||||
m_hint_wnd->Raise();
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user