NSStackView edgeInsets被忽略

时间:2019-02-05 11:35:13

标签: cocoa autolayout nsstackview

Interface Builder会在运行应用程序时忽略在edgeInsets上使用NSStackView

NSStackView edgeInsets not working

1 个答案:

答案 0 :(得分:0)

NSStackView的默认拥抱优先级为250。仅在拥抱优先级 500或更高时强制实施edgeInsets

NSStackView edgeInsets hugging priority

重要NSStackView的拥抱优先级和内容拥抱优先级不相同。

NSStackView hugging priority and a content hugging priority