summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-11-17 18:20:09 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-11-17 18:20:09 +0000
commit3f68395e83e3f2a8534d37196be03c0aae131f49 (patch)
tree793a8b1dbeba0cd91de6cabf7ebe4cd99306b0b6 /src
parentc63083837ff47b891c2c833125c82addcbe4b521 (diff)
Keep tooltip windows on the screen.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1693 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Tooltip.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx
index 383a4ba10..06ddd0141 100644
--- a/src/Fl_Tooltip.cxx
+++ b/src/Fl_Tooltip.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Tooltip.cxx,v 1.38.2.5 2001/11/17 18:18:53 easysw Exp $"
+// "$Id: Fl_Tooltip.cxx,v 1.38.2.6 2001/11/17 18:20:09 easysw Exp $"
//
// Tooltip source file for the Fast Light Tool Kit (FLTK).
//
@@ -93,9 +93,9 @@ public:
int ox = Fl::event_x_root() + 10;
int oy = Fl::event_y_root() + 10;
- if (ox >= Fl::w())
+ if (ox >= (Fl::w() - ww - 6))
ox = Fl::w() - ww - 6;
- if (oy >= Fl::h())
+ if (oy >= (Fl::h() - hh - 6))
oy = widgetWindow->y_root() + Fl_Tooltip::widget->y() - hh - 6;
parent()->resize(ox, oy, ww+6, hh+6);
@@ -189,5 +189,5 @@ Fl_Tooltip::tooltip_timeout(void *v) {
//
-// End of "$Id: Fl_Tooltip.cxx,v 1.38.2.5 2001/11/17 18:18:53 easysw Exp $".
+// End of "$Id: Fl_Tooltip.cxx,v 1.38.2.6 2001/11/17 18:20:09 easysw Exp $".
//