NSStackView edgeInsets被忽略

问题描述 投票:0回答:1

edgeInsets使用NSStackView由Interface Builder中运行应用程序时忽略。

NSStackView edgeInsets not working

cocoa autolayout nsstackview
1个回答
2
投票

NSStackView默认拥抱的优先级为250时拥抱优先级为500或更高的edgeInsets仅执行。

NSStackView edgeInsets hugging priority

重要提示:NSStackView有拥抱的优先级和内容拥抱优先这是不一样的。

NSStackView hugging priority and a content hugging priority

© www.soinside.com 2019 - 2024. All rights reserved.