From d43c0afbd9795761c5abeb5a05508c489bbb50fe Mon Sep 17 00:00:00 2001
From: Ivica Ico Bukvic <ico@vt.edu>
Date: Thu, 17 Sep 2020 10:52:16 -0400
Subject: [PATCH] Removed excess y size in the VU dialog

---
 pd/nw/pdgui.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 90289fd21..ab4fbb508 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -5659,7 +5659,12 @@ function gui_iemgui_dialog(did, attr_array) {
     // We are subtracting 25 for the menu
     // ico@vt.edu: since adding frameless window, we use top 20px for draggable titlebar,
     // so now we subtract only 5 (25-20)
-    create_window(did, "iemgui", 298, 414-5,
+    //post("attr_array=" + attr_array);
+    var height = 409;
+    if (attr_array[1] === "vu") {
+        height = 360;
+    }
+    create_window(did, "iemgui", 298, height,
         popup_coords[2] + 10, popup_coords[3] + 60,
         attr_array_to_object(attr_array));
 }
-- 
GitLab