From 06f95a02ec61058864f12889facbed6026aabf10 Mon Sep 17 00:00:00 2001 From: echicken <> Date: Wed, 11 Jan 2017 20:28:57 +0000 Subject: [PATCH] Reset x and y offset to 0 after clearing frame. Maybe this should be done in Frame.home(). --- exec/load/frame.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exec/load/frame.js b/exec/load/frame.js index 01d93f2e2f..42b8ecd35d 100644 --- a/exec/load/frame.js +++ b/exec/load/frame.js @@ -917,6 +917,8 @@ Frame.prototype.pageup = function() { Frame.prototype.clear = function (attr) { if (attr) this.attr = attr; this.__properties__.data = []; + this.__position__.offset.x = 0; + this.__position__.offset.y = 0; this.home(); this.invalidate(); } -- GitLab