gsdios / SDAutoLayout

One line of code to implement automatic layout. 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based on runtime.
MIT License
5.9k stars 1.28k forks source link

一个特殊情况 #329

Open ChandHsu opened 4 years ago

ChandHsu commented 4 years ago

有一个特殊情况,在一个view内横向显示3个子view,两边的view与父view间隔是20,子view间的间距是5,子view宽度随父view的宽度改变,这种情况下改怎么布局,是不是有现成的,只是我不会用(Offset?); 或者,是不是可以在ratio的基础上,加一个偏移量?