adjust the window coordinates for parent client area origin when in Create() too and not only in DoSetSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -160,6 +160,8 @@ bool wxWindowX11::Create(wxWindow *parent, wxWindowID id,
|
|||||||
if (pos2.y == wxDefaultCoord)
|
if (pos2.y == wxDefaultCoord)
|
||||||
pos2.y = 0;
|
pos2.y = 0;
|
||||||
|
|
||||||
|
AdjustForParentClientOrigin(pos2.x, pos2.y);
|
||||||
|
|
||||||
#if wxUSE_TWO_WINDOWS
|
#if wxUSE_TWO_WINDOWS
|
||||||
bool need_two_windows =
|
bool need_two_windows =
|
||||||
((( wxSUNKEN_BORDER | wxRAISED_BORDER | wxSIMPLE_BORDER | wxHSCROLL | wxVSCROLL ) & m_windowStyle) != 0);
|
((( wxSUNKEN_BORDER | wxRAISED_BORDER | wxSIMPLE_BORDER | wxHSCROLL | wxVSCROLL ) & m_windowStyle) != 0);
|
||||||
|
Reference in New Issue
Block a user