Fix button drawing with visibility=GONE; close #146

This commit is contained in:
Vadim Lopatin 2016-01-22 10:30:32 +03:00
parent 65c32cdae5
commit 5ff718a3e2
1 changed files with 2 additions and 0 deletions

View File

@ -484,6 +484,8 @@ class Button : Widget {
}
override void onDraw(DrawBuf buf) {
if (visibility != Visibility.Visible)
return;
super.onDraw(buf);
Rect rc = _pos;
applyMargins(rc);