unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 55410@debbugs.gnu.org
Subject: bug#55410: 28.1; Button text is sometimes trimmed in the NS port
Date: Sat, 14 May 2022 13:29:05 +0200	[thread overview]
Message-ID: <m1r14ws67y.fsf@yahoo.es> (raw)
In-Reply-To: m1r14ws67y.fsf.ref@yahoo.es


Steps to reproduce:

emacs -Q
C-x C-f foo
Type something
Click on the upper-left red button to close the frame.

Actual result:

The text "Close Without Saving" is trimmed.

Expected result:

The text of all buttons is completely visible.

I think this bug happens whenever the button text is longer than the
minimum button width (MINCELLWIDTH in nsmenu.m).

I've taken a look at the code and I can avoid the problem if I remove
the expression [cell setBezelStyle: NSBezelStyleRounded] from the
NSButtonCell preparation code in [EmacsDialogPanel
initWithContentRect:styleMask:backing:defer].  But, of course, buttons
look ugly if I do that.

In GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559))
 of 2022-04-04 built on armbob.lan
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.3.1

Configured using:
 'configure --with-ns '--enable-locallisppath=/Library/Application
 Support/Emacs/${version}/site-lisp:/Library/Application
 Support/Emacs/site-lisp' --with-modules'

Configured features:
ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER THREADS
TOOLKIT_SCROLL_BARS ZLIB

Important settings:
  value of $LANG: en_ES.UTF-8
  locale-coding-system: utf-8-unix





           reply	other threads:[~2022-05-14 11:29 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <m1r14ws67y.fsf.ref@yahoo.es>]

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=m1r14ws67y.fsf@yahoo.es \
    --to=bug-gnu-emacs@gnu.org \
    --cc=55410@debbugs.gnu.org \
    --cc=mardani29@yahoo.es \
    /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).