src/Builder4/WindowRooView.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 15 Apr 2015 05:52:56 +0000 (13:52 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 15 Apr 2015 05:52:56 +0000 (13:52 +0800)
src/Builder4/WindowRooView.vala

src/Builder4/WindowRooView.bjs
src/Builder4/WindowRooView.vala

index 6658097..2ee8853 100644 (file)
@@ -92,7 +92,7 @@
          "# GLib.DateTime lastRedraw" : "null",
          "# string runhtml" : "\"\"",
          "# bool pendingRedraw" : false,
-         "| void renderJS" : "(bool force) {\n\n    // this is the public redraw call..\n    // we refresh in a loop privately..\n    var autodraw = _this.AutoRedraw.el.active;\n    if (!autodraw && !force) {\n        print(\"Skipping redraw - no force, and autodraw off\");\n        return;\n    }\n    this.refreshRequired  = true;\n}\n"
+         "| void renderJS" : "(bool force) {\n\n    // this is the public redraw call..\n    // we refresh in a loop privately..\n    var autodraw = _this.AutoRedraw.el.active;\n    if (!autodraw && !force) {\n        print(\"Skipping redraw - no force, and autodraw off\");\n        return;\n    }\n    if (force) {\n        this.reInit();\n        return;\n    }\n    this.refreshRequired  = true;\n}\n"
         }
        ]
       }
index 1475739..ce06822 100644 (file)
@@ -681,6 +681,10 @@ public class Xcls_WindowRooView : Object
                 print("Skipping redraw - no force, and autodraw off");
                 return;
             }
+            if (force) {
+                this.reInit();
+                return;
+            }
             this.refreshRequired  = true;
         }
     }