From 38dfca80abaa8cefdd95b1d3dc22ece47240908b Mon Sep 17 00:00:00 2001 From: dream7180 Date: Sun, 6 Oct 2024 08:44:12 +0800 Subject: [PATCH] 7.35-2 --- script/js_panels/bottombar.js | 10 ++++++---- version6/base.js | 6 ++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/script/js_panels/bottombar.js b/script/js_panels/bottombar.js index 3c51e0d..5632f4d 100644 --- a/script/js_panels/bottombar.js +++ b/script/js_panels/bottombar.js @@ -83,7 +83,7 @@ oSwitchbar = function() { break; case "lbtn_up": if (this.hover_tab > 0 && this.hover_tab-1 != active_pid){ - this.swith_panel(this.hover_tab); + this.switch_panel(this.hover_tab); this.down = 0; } break; @@ -103,7 +103,7 @@ oSwitchbar = function() { g_switchbar.tip_timer && window.ClearInterval(g_switchbar.tip_timer); g_switchbar.tip_timer = false; } - this.swith_panel = function(id) { + this.switch_panel = function(id) { active_p.Show(false); active_pid = id - 1; switch(active_pid){ @@ -195,8 +195,10 @@ function detect_video() { function set_panel() { var ph = win_y - z(2); - if(active_p.Width != ww || active_p.Height != ph) - active_p.Move(0, 0, ww, ph); + try{ + if(active_p.Width != ww || active_p.Height != ph) + active_p.Move(0, 0, ww, ph); + }catch(e){} } function TimeFmt(t) { diff --git a/version6/base.js b/version6/base.js index 87e77a8..c65e267 100644 --- a/version6/base.js +++ b/version6/base.js @@ -201,8 +201,10 @@ function detect_video() { function set_panel() { var ph = win_y - topbarh; - if(active_p.Width != ww || active_p.Height != ph) - active_p.Move(0, topbarh, ww, ph); + try{ + if(active_p.Width != ww || active_p.Height != ph) + active_p.Move(0, topbarh, ww, ph); + }catch(e){} } function TimeFmt(t) {