swift - Stop NSComboBox from expanding to content size in a constraint based layout -
i have little view can resized has constraint based layout:
unfortunately when value picked nscombobox, length of string pushing around layout. hard tell here because images scaled if had string width of entire screen push way. how stop this?
you need set combo box's compression resistance priority less 490 (nslayoutprioritydragthatcannotresizewindow
). makes autolayout system prefer make combo box smaller intrinsic size rather make window bigger.
Comments
Post a Comment