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 🤔
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 |

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