Jelajahi Sumber

Merge pull request #39 from yangfasheng/master

修复控件由hide状态到show状态时剪切域未更新BUG
yangfasheng 7 tahun lalu
induk
melakukan
fa1ed6117c
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      src/widget.c

+ 2 - 0
src/widget.c

@@ -599,6 +599,8 @@ void rtgui_widget_show(struct rtgui_widget *widget)
 
     if (widget->toplevel != RT_NULL)
     {
+        rtgui_widget_update_clip(widget);
+
         RTGUI_EVENT_SHOW_INIT(&eshow);
         if (RTGUI_OBJECT(widget)->event_handler != RT_NULL)
         {