Merge pull request #349 from and3md/groupbox_fix
GroupBox include margins to caption pos, improved images
|
@ -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)
|
||||
|
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 239 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 252 B After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 257 B After Width: | Height: | Size: 229 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 228 B |