mirror of https://github.com/buggins/dlangui.git
Fix button drawing with visibility=GONE; close #146
This commit is contained in:
parent
65c32cdae5
commit
5ff718a3e2
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue