unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: jan.h.d@swipnet.se, czkmt@remus.dti.ne.jp, emacs-devel@gnu.org
Subject: Re: tooltip can be displayed outside the screen
Date: Fri, 02 Dec 2005 23:04:57 +0200	[thread overview]
Message-ID: <87oe3zut2t.fsf@jurta.org> (raw)
In-Reply-To: <uek4vbb71.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 02 Dec 2005 20:33:54 +0200")

>> >    Sorry I need to give a little more explanation.  In the two images
>> >    Emacs frame is placed on the bottom edge of the screen.  When I
>> >    move the mouse pointer to the mode line, Emacs 22.0.50 tries to
>> >    place the tooltip below the mouse pointer.  But enough pixels are
>> >    not left between the point just below the mouse pointer and the
>> >    bottom edge of the screen. As a consequence the tooltip appears
>> >    partly off the edge of the screen.
>> >
>> >Can someone please fix this and ack?
>> 
>> Fixed.
>
> Jan fixed this for X only; I now fixed it for w32.  I think someone
> with access to the Mac needs to fix it in macfns.c.

I noticed that the user option `tooltip-y-offset' doesn't do what it is
intended to do.  Instead of specifying the Y offset, it actually specifies
Y offset + height of the tooltip frame.  With a different font size
the tooltip might overlap the mouse pointer (with a bigger font) or might
be placed too far from the mouse pointer (with a smaller font).  This looks
like a bug.

OTOH, `tooltip-x-offset' properly specifies the X offset.  I suggest
to duplicate the implementation of calculating the X absolute coordinate
of the tooltip frame position, for calculating the Y absolute coordinate
with replacing `x' with `y' and `width' with `height' in the copy of the
code.  This will make the logic of these two options exactly the same.

This change will also require fixing the default value of `tooltip-y-offset'
from 40 (which currently is the sum of the real Y offset + the size of
the default font) to e.g. 18.

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

  reply	other threads:[~2005-12-02 21:04 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 [this message]
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
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=87oe3zut2t.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=czkmt@remus.dti.ne.jp \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    /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).