diff --git a/src/dlangui/widgets/widget.d b/src/dlangui/widgets/widget.d index 9ff25378..a39e9201 100644 --- a/src/dlangui/widgets/widget.d +++ b/src/dlangui/widgets/widget.d @@ -1413,6 +1413,7 @@ public: /// request redraw void invalidate() { _needDraw = true; + window.update(); } /// helper function for implement measure() when widget's content dimensions are known @@ -1811,6 +1812,11 @@ class WidgetGroup : Widget { protected WidgetList _children; + override @property bool needDraw() + { + return _children.asArray.any!(x => x.needDraw) || _needDraw; + } + /// returns number of children of this widget @property override int childCount() const { return _children.count; } /// returns child by index