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
David MacDonald
purr-data
Commits
3e2836b2
Commit
3e2836b2
authored
Jul 10, 2015
by
Jonathan Wilkes
Browse files
remove debug message in getscroll
try using clientWidth/Height instead of innerWidth/Height in getscroll
parent
db926668
Changes
2
Hide whitespace changes
Inline
Side-by-side
pd/nw/pd_canvas.html
View file @
3e2836b2
...
...
@@ -10,7 +10,7 @@
<input
style=
"display:none;"
id=
"openpanel_dialog"
type=
"file"
/>
<input
style=
"display:none;"
id=
"savepanel_dialog"
type=
"file"
nwsaveas
nwworkingdir
/>
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
id=
"patchsvg"
height=
"1000"
width=
"1000"
overflow=
"visible"
class=
"noselect"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
version=
"1.1"
id=
"patchsvg"
overflow=
"visible"
class=
"noselect"
>
</svg>
<script>
'
use strict
'
;
...
...
pd/nw/pdgui.js
View file @
3e2836b2
...
...
@@ -3576,11 +3576,10 @@ function do_getscroll(cid) {
var
width
=
bbox
.
x
>
0
?
bbox
.
x
+
bbox
.
width
:
bbox
.
width
,
height
=
bbox
.
y
>
0
?
bbox
.
y
+
bbox
.
height
:
bbox
.
height
;
if
(
width
===
0
)
{
gui_post
(
"
our width is 0
"
);
width
=
patchwin
[
cid
].
window
.
innerWidth
;
width
=
patchwin
[
cid
].
window
.
clientWidth
;
}
if
(
height
===
0
)
{
height
=
patchwin
[
cid
].
window
.
inner
Height
;
height
=
patchwin
[
cid
].
window
.
client
Height
;
}
configure_item
(
svg
,
{
viewBox
:
[
bbox
.
x
>
0
?
0
:
bbox
.
x
,
...
...
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