From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: tooltip can be displayed outside the screen Date: Wed, 14 Dec 2005 22:01:25 +0100 Message-ID: <43A08825.8070704@swipnet.se> References: <4390611E.3040500@swipnet.se> <4391A9CE.6090706@swipnet.se> <87acffdnrg.fsf@jurta.org> <439D501F.8060609@swipnet.se> <87pso1bdrb.fsf@jurta.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134601030 32603 80.91.229.2 (14 Dec 2005 22:57:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Dec 2005 22:57:10 +0000 (UTC) Cc: eliz@gnu.org, czkmt@remus.dti.ne.jp, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 14 23:57:06 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmfWc-0002yd-Un for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2005 23:55:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EmfX9-0003mY-No for ged-emacs-devel@m.gmane.org; Wed, 14 Dec 2005 17:55:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Emdlh-0000xm-PF for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:02:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Emdlg-0000x7-IH for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:02:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Emdlg-0000wx-CD for emacs-devel@gnu.org; Wed, 14 Dec 2005 16:02:32 -0500 Original-Received: from [195.54.107.70] (helo=mxfep01.bredband.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Emdni-0006m8-4R; Wed, 14 Dec 2005 16:04:39 -0500 Original-Received: from ironport.bredband.com ([195.54.107.82] [195.54.107.82]) by mxfep01.bredband.com with ESMTP id <20051214210145.BKFW676.mxfep01.bredband.com@ironport.bredband.com>; Wed, 14 Dec 2005 22:01:45 +0100 Original-Received: from c-c1b4e253.012-150-626f6410.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([83.226.180.193]) by ironport.bredband.com with ESMTP; 14 Dec 2005 22:02:06 +0100 X-BrightmailFiltered: true X-IronPort-AV: i="3.99,252,1131318000"; d="scan'208"; a="18584679:sNHT31721355" User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Original-To: Juri Linkov In-Reply-To: <87pso1bdrb.fsf@jurta.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:47737 Archived-At: Juri Linkov wrote: > 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. Jan D.