Fix group box caption pos - margins was not included.

This commit is contained in:
and3md 2017-05-20 12:50:52 +02:00
parent f37fa6970b
commit e74c5b5f4b
1 changed files with 2 additions and 1 deletions

View File

@ -156,8 +156,9 @@ class GroupBox : LinearLayout {
override void layout(Rect rc) {
super.layout(rc);
Rect r = rc;
r.top += margins.top;
r.bottom = r.top + _topHeight;
r.left += _topFrameLeft;
r.left += _topFrameLeft + margins.left;
r.right -= _topFrameRight;
_caption.measure(r.width, r.height);
if (r.width > _caption.measuredWidth)