unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55410: 28.1; Button text is sometimes trimmed in the NS port
       [not found] <m1r14ws67y.fsf.ref@yahoo.es>
@ 2022-05-14 11:29 ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; only message in thread
From: Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-14 11:29 UTC (permalink / raw)
  To: 55410


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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-14 11:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m1r14ws67y.fsf.ref@yahoo.es>
2022-05-14 11:29 ` bug#55410: 28.1; Button text is sometimes trimmed in the NS port Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors

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