[rtl] fix resizing for left panel

This commit is contained in:
Maxim Kadushkin 2022-10-22 00:26:12 +03:00
parent 27743d4303
commit e16eaa1f15
4 changed files with 14 additions and 4 deletions

View file

@ -261,7 +261,7 @@ define([
var panel = e.data.panel;
this.resize.type = e.data.type;
this.resize.$el = panel.el;
this.resize.min = panel.minpos;
this.resize.min = panel.minpos > 0 ? panel.minpos : this.resize.$el.parent().width() + panel.minpos;
this.resize.fmin = panel.fmin;
this.resize.fmax = panel.fmax;
this.resize.behaviour = panel.behaviour;
@ -365,15 +365,15 @@ define([
oldValue = parseInt(panel.css(prop));
} else {
panel = this.resize.$el.next();
next = this.resize.$el.next();
next = this.resize.$el.prev();
oldValue = parseInt(panel.css(prop));
value = panel.parent()[prop]() - (value + this.resize[prop]);
}
if (this.resize.type == 'vertical')
value -= panel.position().top;
if (this.resize.type == 'horizontal')
value -= panel.position().left;
// if (this.resize.type == 'horizontal')
// value -= panel.position().left;
panel.css(prop, value + 'px');

View file

@ -133,6 +133,10 @@ define([
];
if ( Common.UI.isRTL() ) {
iarray[0].resize.min = -600;
iarray[0].resize.max = -300;
[iarray[1].resize.min, iarray[1].resize.max] = [-600, -300];
[iarray[0], iarray[3]] = [iarray[3], iarray[0]];
[iarray[1], iarray[2]] = [iarray[2], iarray[1]];
}

View file

@ -134,6 +134,9 @@ define([
}];
if ( Common.UI.isRTL() ) {
[iarray[0].resize.min, iarray[0].resize.max] = [-600, -300];
[iarray[1].resize.min, iarray[1].resize.max] = [-600, -300];
[iarray[0], iarray[3]] = [iarray[3], iarray[0]];
[iarray[1], iarray[2]] = [iarray[2], iarray[1]];
}

View file

@ -137,6 +137,9 @@ define([
}];
if ( Common.UI.isRTL() ) {
[iarray[0].resize.min, iarray[0].resize.max] = [-600, -300];
[iarray[1].resize.min, iarray[1].resize.max] = [-600, -300];
[iarray[0], iarray[3]] = [iarray[3], iarray[0]];
[iarray[1], iarray[2]] = [iarray[2], iarray[1]];
}