GNU bug report logs - #50798
28.0.50; Tab line close button is off-center until it is highlighted with the mouse

Previous Next

Package: emacs;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Sat, 25 Sep 2021 06:55:02 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.0.60

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: luangruo <at> yahoo.com, larsi <at> gnus.org, 50798 <at> debbugs.gnu.org
Subject: bug#50798: 28.0.50; Tab line close button is off-center until it is highlighted with the mouse
Date: Wed, 06 Oct 2021 10:16:27 +0300
>> I don't understand how coordinates are calculated,
>> so I'll try to create a minimal test case for debugging.
>
> Thanks.

It seems this test case exposes the problem.
The face 'test-highlight' just inherits from 'test-tab',
but hovering over the image shifts it upwards outside of the view.
The test uses the header-line to show that the problem is the same
for both the tab-line and the header-line.

(defface test
  '((t :height 2.0))
  "")

(defface test-tab
  '((default :inherit test)
    (t :box (:line-width 1 :style released-button)))
  "")

(defface test-highlight
  '((default :inherit test-tab))
  "")

(setq header-line-format
      (list (propertize " + "
                        'display '(image :type xpm
                                         :file "tabs/new.xpm"
                                         :margin (2 . 0)
                                         :ascent center)
                        'face 'test-tab
                        'mouse-face 'test-highlight)))




This bug report was last modified 3 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.