Merge pull request #349 from and3md/groupbox_fix

GroupBox include margins to caption pos, improved images
This commit is contained in:
Vadim Lopatin 2017-05-22 10:28:48 +03:00 committed by GitHub
commit 1791a03c09
7 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)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 257 B

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 228 B