Commit 96a856b2 authored by user's avatar user
Browse files

Fixed bug with setting array jump on click

parent 3729b1df
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment