mirror of https://github.com/buggins/dlangui.git
Fix group box caption pos - margins was not included.
This commit is contained in:
parent
f37fa6970b
commit
e74c5b5f4b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue