swift - Stop NSComboBox from expanding to content size in a constraint based layout -


i have little view can resized has constraint based layout:

happy view can scaled in either direction

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?

sad view

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -