From 96a856b2e6e2b20204731179c1a9f7dc3aff8885 Mon Sep 17 00:00:00 2001 From: user <user@user-ThinkPad-X60.(none)> Date: Tue, 12 May 2015 18:10:43 -0400 Subject: [PATCH] Fixed bug with setting array jump on click --- pd/nw/pdgui.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index 81416cf1e..460958622 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -1870,12 +1870,12 @@ function gui_text_create_gobj(cid, tag, type, xpos, ypos, is_toplevel) { class: type + (is_toplevel !== 0 ? '' : ' gop') }); svg.appendChild(g); - var bluh = svg.getBBox(); - var bbox_rect = svg.getElementById('bbox_rect'); - bbox_rect.setAttributeNS(null, 'width', bluh.width); - bbox_rect.setAttributeNS(null, 'height', bluh.height); - bbox_rect.setAttributeNS(null, 'fill', 'none'); - bbox_rect.setAttributeNS(null, 'stroke', 'black'); +// var bluh = svg.getBBox(); +// var bbox_rect = svg.getElementById('bbox_rect'); +// bbox_rect.setAttributeNS(null, 'width', bluh.width); +// bbox_rect.setAttributeNS(null, 'height', bluh.height); +// bbox_rect.setAttributeNS(null, 'fill', 'none'); +// bbox_rect.setAttributeNS(null, 'stroke', 'black'); // hm... why returning g and not the return value of appendChild? // console.log("create gobj tag is " + tag + " and ret is " + g); -- GitLab