From f13f07942ed5a5ed6c7afffa85244aba2fab45f4 Mon Sep 17 00:00:00 2001 From: cTn Date: Sat, 18 Jan 2014 19:20:34 +0100 Subject: [PATCH] bugfix --- js/gui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/gui.js b/js/gui.js index efd58e55..9e7e46e6 100644 --- a/js/gui.js +++ b/js/gui.js @@ -206,6 +206,10 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) { case 'sensors': GUI.interval_kill_all(['port-update', 'port_usage', 'serial_read']); + // sensor data tab uses scrollbars, emptying the content before loading another tab + // prevents scrollbar exposure to any of the tabs while new content is loaded in + $('#content').empty(); + if (callback) callback(); break; case 'cli':