uI控件设置custom模式调整大小之后代码无法获得准确值

比如一个button auto模式大小22,custom模式改成11,但是使用getcontentsize获得的宽高还是2*2
求解

使用getsize来获取大小