Commit 3e2836b2 authored by Jonathan Wilkes's avatar Jonathan Wilkes

remove debug message in getscroll

try using clientWidth/Height instead of innerWidth/Height in getscroll
parent db926668
......@@ -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';
......
......@@ -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.innerHeight;
height = patchwin[cid].window.clientHeight;
}
configure_item(svg, {
viewBox: [bbox.x > 0 ? 0 : bbox.x,
......
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