Skip to content

Commit

Permalink
7.35-2
Browse files Browse the repository at this point in the history
  • Loading branch information
dream7180 committed Oct 6, 2024
1 parent df59ccf commit 38dfca8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions script/js_panels/bottombar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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){
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 4 additions & 2 deletions version6/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 38dfca8

Please sign in to comment.