unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: eliz@gnu.org, czkmt@remus.dti.ne.jp, emacs-devel@gnu.org
Subject: Re: tooltip can be displayed outside the screen
Date: Wed, 14 Dec 2005 09:54:34 +0200	[thread overview]
Message-ID: <87pso1bdrb.fsf@jurta.org> (raw)
In-Reply-To: <439D501F.8060609@swipnet.se> (Jan D.'s message of "Mon, 12 Dec 2005 11:25:35 +0100")

> It must be a bug that the tooltip can be covered by the pointer so
> I've changed it as you suggested (for W32 and Mac also this time).
> You must have quite a big font to see this with the default y offset.
> I also changed the default y offset to 20 from 40.

Thanks.  Now due to your changes I discovered an old bug (I can reproduce
it in Emacs 21.4) in X coordinate calculations (and now this bug also
affects Y coordinate calculations).  After setting the X offset
(or the Y offset) to a negative value, tooltips can appear partly
outside the left (or top) edge of the screen.  I'm sorry, I didn't
report this bug earlier, because I found it only now, after your
changes while trying to use negative offsets.

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).

-- 
Juri Linkov
http://www.jurta.org/emacs/

  reply	other threads:[~2005-12-14  7:54 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3sltjuvd6.fsf@czkmt.remus.dti.ne.jp>
2005-11-27  3:28 ` tooltip can be displayed outside the screen Richard M. Stallman
2005-11-27  4:55   ` Tetsuo Tsukamoto
2005-11-27 22:34     ` Richard M. Stallman
2005-12-02 14:58       ` Jan D.
2005-12-02 18:33         ` Eli Zaretskii
2005-12-02 21:04           ` Juri Linkov
2005-12-03 14:21           ` Jan Djärv
2005-12-06  0:52             ` Juri Linkov
2005-12-12 10:25               ` Jan D.
2005-12-14  7:54                 ` Juri Linkov [this message]
2005-12-14 21:01                   ` Jan Djärv
2005-12-15  9:28                     ` Juri Linkov
2005-12-16  1:52                       ` Richard M. Stallman
2005-12-16  9:03                         ` Juri Linkov
2005-12-17  1:04                           ` Richard M. Stallman
2005-12-17 10:48                             ` GC garbles menu items (was: tooltip can be displayed outside the screen) Juri Linkov
2005-12-18  0:00                               ` Richard M. Stallman
2005-12-20 21:54                                 ` GC garbles menu items Juri Linkov
2005-12-22  5:47                                   ` Richard M. Stallman
2005-12-22 20:48                                     ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pso1bdrb.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=czkmt@remus.dti.ne.jp \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).