绝对布局
相对第一个非 static 定位的父元素【默认都是 static】进行定位。
css
position:absolute
top:
left:
right:
bottom:
dorado
首先父元素使用锚定布局anchor,然后设置该元素的LayoutConstraint,如何使用left和top,则先将anchorLeft和anchorTop设置为container,在设置left和top的值
相对布局
dorado
非native都是相对布局
pack:hbox布局则子元素水平排列方式
align:hbox布局则子元素在垂直方向排列方式
hbox时,子元素须设置height,默认高度为100%
vbox时,子元素须设置width,默认宽度为100%
padding:布局中的元素距离该Container的距离
regionPadding:布局中的元素彼此之间的距离
form布局
- 问题:子控件们的高度不够form布局的rowHeight?
解决:设置子控件的height为100%