[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tooltip can be displayed outside the screen
From: |
Juri Linkov |
Subject: |
Re: tooltip can be displayed outside the screen |
Date: |
Thu, 15 Dec 2005 11:28:15 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
>> One idea that came to me is that negative offsets could be interpreted
>> as absolute distances between the X (Y) position of the mouse and the
>> right (bottom) border of the tooltip frame (and to leave positive offsets
>> relative to the left (top) border as they work now). This way no matter
>> what values offsets will have, the tooltip frame will never cover the mouse
>> pointer. And this will work exactly the same way as currently calculations
>> behave to avoid the tooltip displayed outside the screen (i.e. negating the
>> interpretation of offsets to opposite sides of the tooltip frame).
>
> That seems to complicated. I just fixed so negative offsets is handeled OK.
OK.
BTW, I think current docstrings are not clear. I propose to change
them as below:
Index: lisp/tooltip.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/tooltip.el,v
retrieving revision 1.70
diff -c -r1.70 tooltip.el
*** lisp/tooltip.el 12 Dec 2005 09:36:22 -0000 1.70
--- lisp/tooltip.el 15 Dec 2005 09:27:14 -0000
***************
*** 96,104 ****
(defcustom tooltip-x-offset 5
"X offset, in pixels, for the display of tooltips.
! The offset is relative to the position of the mouse. It must
! be chosen so that the tooltip window doesn't contain the mouse
! when it pops up.
If `tooltip-frame-parameters' includes the `left' parameter,
the value of `tooltip-x-offset' is ignored."
--- 98,106 ----
(defcustom tooltip-x-offset 5
"X offset, in pixels, for the display of tooltips.
! The offset is the distance between the X position of the mouse and
! the left border of the tooltip frame. It must be chosen so that the
! tooltip window doesn't contain the mouse when it pops up.
If `tooltip-frame-parameters' includes the `left' parameter,
the value of `tooltip-x-offset' is ignored."
***************
*** 108,116 ****
(defcustom tooltip-y-offset +20
"Y offset, in pixels, for the display of tooltips.
! The offset is relative to the position of the mouse. It must
! be chosen so that the tooltip window doesn't contain the mouse
! when it pops up.
If `tooltip-frame-parameters' includes the `top' parameter,
the value of `tooltip-y-offset' is ignored."
--- 110,118 ----
(defcustom tooltip-y-offset +20
"Y offset, in pixels, for the display of tooltips.
! The offset is the distance between the Y position of the mouse and
! the top border of the tooltip frame. It must be chosen so that the
! tooltip window doesn't contain the mouse when it pops up.
If `tooltip-frame-parameters' includes the `top' parameter,
the value of `tooltip-y-offset' is ignored."
--
Juri Linkov
http://www.jurta.org/emacs/
- Re: tooltip can be displayed outside the screen, Jan D., 2005/12/02
- Re: tooltip can be displayed outside the screen, Eli Zaretskii, 2005/12/02
- Re: tooltip can be displayed outside the screen, Juri Linkov, 2005/12/02
- Re: tooltip can be displayed outside the screen, Jan Djärv, 2005/12/03
- Re: tooltip can be displayed outside the screen, Juri Linkov, 2005/12/05
- Re: tooltip can be displayed outside the screen, Jan D., 2005/12/12
- Re: tooltip can be displayed outside the screen, Juri Linkov, 2005/12/14
- Re: tooltip can be displayed outside the screen, Jan Djärv, 2005/12/14
- Re: tooltip can be displayed outside the screen,
Juri Linkov <=
- Re: tooltip can be displayed outside the screen, Richard M. Stallman, 2005/12/15
- Re: tooltip can be displayed outside the screen, Juri Linkov, 2005/12/16
- Re: tooltip can be displayed outside the screen, Richard M. Stallman, 2005/12/16
- GC garbles menu items (was: tooltip can be displayed outside the screen), Juri Linkov, 2005/12/17
- Re: GC garbles menu items (was: tooltip can be displayed outside the screen), Richard M. Stallman, 2005/12/17
- Re: GC garbles menu items, Juri Linkov, 2005/12/20
- Re: GC garbles menu items, Richard M. Stallman, 2005/12/22
- Re: GC garbles menu items, Juri Linkov, 2005/12/22