解决duilib水平布局(HorizontalLayout)中控件位置计算错误的问题

水平布局中的控件无法布满整个布局,右側留有缝隙

修正后的样子


原因是布局中的代码计算Padding时候逻辑不对导致


修正后的代码到https://github.com/CodeBees/duilib-Ex-Debug检出


原文地址:https://www.cnblogs.com/zhchoutai/p/7374847.html