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
nerrons
purr-data
Commits
c6dbfafe
Commit
c6dbfafe
authored
Nov 16, 2015
by
Jonathan Wilkes
Browse files
fix placement of text inside nbx
parent
304f2be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/nw/pdgui.js
View file @
c6dbfafe
...
...
@@ -1750,8 +1750,9 @@ function gui_create_numbox(width,cid,tag,bgcolor,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10,
function
gui_numbox_drawtext
(
cid
,
tag
,
text
,
font_size
,
color
,
xpos
,
ypos
,
basex
,
basey
)
{
var
g
=
get_gobj
(
cid
,
tag
),
svg_text
=
create_item
(
cid
,
"
text
"
,
{
x
:
xpos
-
basex
,
y
:
ypos
-
basey
+
5
,
transform
:
"
translate(
"
+
(
xpos
-
basex
)
+
"
,
"
+
(
ypos
-
basey
+
5
)
+
"
)
"
,
"
font-size
"
:
font_size
,
fill
:
color
,
id
:
tag
+
"
text
"
...
...
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