Repository navigation
feat: add textWidth option to dialog.showMessageBox() - #30474
Conversation
e13bf38 to
67f67ba
Compare
There was a problem hiding this comment.
I agree this is a problem worth addressing, but my mild concern here is that this solution is a bit narrow and might prevent us from addressing other similar issues in a more robust way in the future.
For example - with this users can specify a custom width, but would they ever experience issues with height? Would it perhaps make more sense to specify x, y, width, height as a gfx::Rect here? If that's a potential i'd definitely want to avoid adding more one-off properties than necessary 🤔
@codebytere It's only possible to specify width. I am using a dummy https://developer.apple.com/documentation/appkit/nsalert/1530575-accessoryview?language=objc, which has specified width and zero height. There does not seem to be any other good way to make the dialog wider. |
zcbenz
left a comment
There was a problem hiding this comment.
The API looks good to me.
f8dbc11 to
114bf2c
Compare
|
Release Notes Persisted
|
|
I have automatically backported this PR to "15-x-y", please check out #31088 |
|
I have automatically backported this PR to "16-x-y", please check out #31089 |
Description of Change
This allows working around the overly narrow

NSAlertdialogs on macOS Big Sur. Default:textWidth = 420:

Checklist
npm testpassesRelease Notes
Notes: Added
textWidthoption todialog.showMessageBox()/dialog.showMessageBoxSync().