src/Builder4/WindowLeftTree.bjs
authorAlan <alan@roojs.com>
Wed, 17 Aug 2022 09:40:27 +0000 (17:40 +0800)
committerAlan <alan@roojs.com>
Wed, 17 Aug 2022 09:40:27 +0000 (17:40 +0800)
src/Builder4/WindowLeftTree.vala

src/Builder4/WindowLeftTree.bjs
src/Builder4/WindowLeftTree.vala

index b0f6d94..bcecf67 100644 (file)
           "    while (Gtk.events_pending()) {",
           "        Gtk.main_iteration();",
           "    }",
-          "    var alloc = _this.view.",
-          "    _this.maincol.el.set_max_width(",
+          "",
+          "    _this.maincol.el.set_max_width(_this.viewwin.get_allocated_width() - 32);",
           "    ",
           "    return;",
           " ",
index 2cb5525..aa8688c 100644 (file)
@@ -1086,8 +1086,8 @@ typeof(Gdk.Pixbuf) }  );
             while (Gtk.events_pending()) {
                 Gtk.main_iteration();
             }
-            var alloc = _this.view.
-            _this.maincol.el.set_max_width(
+        
+            _this.maincol.el.set_max_width(_this.viewwin.get_allocated_width() - 32);
             
             return;