projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
in debug mode when clicking with the middle mouse button draw borders around all...
[wxWidgets.git]
/
src
/
common
/
popupcmn.cpp
diff --git
a/src/common/popupcmn.cpp
b/src/common/popupcmn.cpp
index bc28d8708ec0a65104cc1a536330209f3a73311e..a5dab64013485b071354c2f62ee3ef7841ff878d 100644
(file)
--- a/
src/common/popupcmn.cpp
+++ b/
src/common/popupcmn.cpp
@@
-159,7
+159,7
@@
void wxPopupWindowBase::Position(const wxPoint& ptOrigin,
// 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 )
@@
-183,7
+183,7
@@
void wxPopupWindowBase::Position(const wxPoint& ptOrigin,
x += size.x;
x += size.x;
- 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 )