Commit 7b81ed29 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

add event listeners for browser window maximize, unmaximize, and resize to...

add event listeners for browser window maximize, unmaximize, and resize to call gui_canvas_getscroll
parent 09d97f26
......@@ -398,6 +398,16 @@ var canvas_events = (function() {
gui.Window.get().on("close", function() {
pdgui.pdsend(name, "menuclose 0");
});
gui.Window.get().on("maximize", function() {
pdgui.gui_canvas_getscroll(name);
});
gui.Window.get().on("unmaximize", function() {
pdgui.gui_canvas_getscroll(name);
});
gui.Window.get().on("resize", function() {
pdgui.gui_canvas_getscroll(name);
});
return {
none: function() {
......
......@@ -3160,6 +3160,8 @@ function gui_canvas_getscroll(cid) {
getscroll_var = setTimeout(do_getscroll, 250, cid);
}
exports.gui_canvas_getscroll = gui_canvas_getscroll;
// handling the selection
function gui_lower(cid, tag) {
var svg = patchwin[cid].window.document.getElementById("patchsvg"),
......
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