git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58598
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// is there enough space to put the popup below the window (where we put it
// by default)?
wxCoord y = ptOrigin.y + size.y;
// is there enough space to put the popup below the window (where we put it
// by default)?
wxCoord y = ptOrigin.y + size.y;
- if ( y + sizeSelf.y > sizeScreen.y )
+ if ( y + sizeSelf.y > posScreen.y + sizeScreen.y )
{
// check if there is enough space above
if ( ptOrigin.y > sizeSelf.y )
{
// check if there is enough space above
if ( ptOrigin.y > sizeSelf.y )
- if ( x + sizeSelf.x > sizeScreen.x )
+ if ( x + sizeSelf.x > posScreen.x + sizeScreen.x )
{
// check if there is enough space to the left
if ( ptOrigin.x > sizeSelf.x )
{
// check if there is enough space to the left
if ( ptOrigin.x > sizeSelf.x )