From ef82db47a7f38a8eb6aa3df6f640f7f8c0ce475c Mon Sep 17 00:00:00 2001 From: Jonathan Wilkes <jon.w.wilkes@gmail.com> Date: Sat, 20 Feb 2016 23:04:22 -0500 Subject: [PATCH] forgot to update name for gui_canvas_get_scroll inside pd_canvas.js --- pd/nw/pd_canvas.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index 0a3eb26bc..d84004290 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -672,13 +672,13 @@ var canvas_events = (function() { }); // update viewport size when window size changes gui.Window.get().on("maximize", function() { - pdgui.gui_canvas_getscroll(name); + pdgui.gui_canvas_get_scroll(name); }); gui.Window.get().on("unmaximize", function() { - pdgui.gui_canvas_getscroll(name); + pdgui.gui_canvas_get_scroll(name); }); gui.Window.get().on("resize", function() { - pdgui.gui_canvas_getscroll(name); + pdgui.gui_canvas_get_scroll(name); }); gui.Window.get().on("focus", function() { nw_window_focus_callback(); @@ -839,7 +839,7 @@ function register_window_id(cid, attr_array) { // Trigger a "focus" event so that OSX updates the menu for this window nw_window_focus_callback(); canvas_events.normal(); - pdgui.canvas_map(cid); // side-effect: triggers gui_canvas_getscroll from Pd + pdgui.canvas_map(cid); // side-effect: triggers gui_canvas_get_scroll set_editmode_checkbox(attr_array.editmode !== 0 ? true : false); // For now, there is no way for the cord inspector to be turned on by // default. But if this changes we need to set its menu item checkbox -- GitLab