I'm currently using sizeThatFits to know the ideal dimensions for a NSPopUpButton (with no bezel).
In macOS Mojave and Catalina, the size I get is correct.
In macOS BS, the size is incorrect:
I have absolutely no plans to use autolayout.
In macOS Mojave and Catalina, the size I get is correct.
In macOS BS, the size is incorrect:
the width is not big enough to display the title.
the height is too small and the text is not vertically centered.
is sizeThatFits a unreliable API?
if it is which one should be used? I don't want to use sizeToFit because I may need to resize the popup button once I know all the idea sizes.
I have absolutely no plans to use autolayout.