User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; sv; rv:126.96.36.199pre) Gecko/20080119 Camino/1.6b3pre (like Firefox/188.8.131.52pre) Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; sv; rv:184.108.40.206pre) Gecko/20080119 Camino/1.6b3pre (like Firefox/220.127.116.11pre) It seems like Apple have screwed up the automatic resizing of buttons in Leopard, for example the "Size To Fit" menu item in Interface Builder (version 3) and the sizeToFit message yields different button sizes. I am attaching a small test project with an example of this. As a result, the buttons in Camino's alerts have incorrect sizes. I am attaching two images as an example. The generated dialogue is from Camino, and I guess this is constructed by makeButtonWithTitle in nsAlertController . The constructed dialogue I built in IB3, and both buttons are sized by the "Size To Fit" menu item. The solution is probably to modify the button sizes after using the sizeToFit message, but only if on Leopard. I am filing a bug at Apple for this inconsistent behaviour.  http://mxr.mozilla.org/seamonkey/source/camino/src/browser/nsAlertController.mm#757 Reproducible: Always
(In reply to comment #0) > As a result, the buttons in Camino's alerts have incorrect sizes. The keychain dialog is an NSAlert, with buttons created entirely by NSAlert itself. We're not going to override AppKit and become inconsistent with the NSAlerts in every other application just because of a difference with IB 3--especially when there's no way of knowing which is canonical.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.