From 15248f85b4821849b1785dece1047457c3f18211 Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Wed, 4 Jan 2017 23:10:18 -0500
Subject: [PATCH] hide inlets when [grid] object is displayed in a
 graph-on-parent subpatch

---
 pd/nw/pdgui.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js
index 9f3d3d930..2c4c2f0f5 100644
--- a/pd/nw/pdgui.js
+++ b/pd/nw/pdgui.js
@@ -3684,10 +3684,12 @@ function gui_grid_new(cid, tag, x, y, is_toplevel) {
             class: "border" // now we can inherit the css border styles
         }),
         out_0 = create_item(cid, "rect", {
-            class: "out_0"
+            class: "out_0",
+            style: "display: " + (is_toplevel ? "inline;" : "none;")
         }),
         out_1 = create_item(cid, "rect", {
-            class: "out_1"
+            class: "out_1",
+            style: "display: " + (is_toplevel ? "inline;" : "none;")
         }),
         grid = create_item(cid, "path", {
             class: "grid"
-- 
GitLab