[ 1803350 ] Wrong top-level window positioning on scrolled window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2898,7 +2898,7 @@ void wxWindowGTK::DoGetPosition( int *x, int *y ) const
|
||||
|
||||
int dx = 0;
|
||||
int dy = 0;
|
||||
if (m_parent && m_parent->m_wxwindow)
|
||||
if (!IsTopLevel() && m_parent && m_parent->m_wxwindow)
|
||||
{
|
||||
GtkPizza *pizza = GTK_PIZZA(m_parent->m_wxwindow);
|
||||
dx = gtk_pizza_get_xoffset( pizza );
|
||||
|
Reference in New Issue
Block a user