Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aayush
purr-data
Commits
96a856b2
Commit
96a856b2
authored
May 12, 2015
by
user
Browse files
Fixed bug with setting array jump on click
parent
3729b1df
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
96a856b2
...
...
@@ -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);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment