Change resizer layout for left panel (due to changing colors in the canvas).

This commit is contained in:
Julia Radzhabova 2018-03-07 13:02:21 +03:00
parent d6bf38e43f
commit 426123738e
3 changed files with 14 additions and 6 deletions

View file

@ -152,7 +152,8 @@ define([
fmin : panel.resize.fmin, fmin : panel.resize.fmin,
fmax : panel.resize.fmax, fmax : panel.resize.fmax,
behaviour : panel.behaviour, behaviour : panel.behaviour,
index : this.splitters.length index : this.splitters.length,
offset : panel.resize.offset || 0
}; };
if (!stretch) { if (!stretch) {
@ -492,7 +493,10 @@ define([
if ( !panel.stretch ) { if ( !panel.stretch ) {
style = panel.el.is(':visible'); style = panel.el.is(':visible');
if ( style ) { if ( style ) {
width += (panel.rely!==true ? panel.width : this.getElementWidth(panel.el)); if (panel.isresizer)
width += panel.offset;
else
width += (panel.rely!==true ? panel.width : this.getElementWidth(panel.el));
} }
if (panel.resize && panel.resize.autohide !== false && panel.resize.el) { if (panel.resize && panel.resize.autohide !== false && panel.resize.el) {
@ -514,10 +518,13 @@ define([
width = 0; width = 0;
this.panels.forEach(function(panel){ this.panels.forEach(function(panel){
if (panel.el.is(':visible')) { if (panel.el.is(':visible')) {
style = {left: width}; style = {left: width - (panel.isresizer ? panel.width : 0)};
panel.rely!==true && (style.width = panel.width); panel.rely!==true && (style.width = panel.width);
panel.el.css(style); panel.el.css(style);
width += this.getElementWidth(panel.el); if (panel.isresizer)
width += panel.offset;
else
width += this.getElementWidth(panel.el);
} }
},this); },this);
} }

View file

@ -49,7 +49,7 @@
} }
> .layout-resizer { > .layout-resizer {
width: 2px; width: 4px;
cursor: col-resize; cursor: col-resize;
&.move { &.move {

View file

@ -112,7 +112,8 @@ define([
hidden: true, hidden: true,
autohide: false, autohide: false,
min: 300, min: 300,
max: 600 max: 600,
offset: 4
} }
}, { }, {
el: items[1], el: items[1],