Fixed a column resizing issue.

This commit is contained in:
Daniel Stolt
2015-10-03 19:32:50 +02:00
parent bd96bf9895
commit 42914c7896
4 changed files with 12 additions and 12 deletions

View File

@@ -71,7 +71,7 @@
};
this.contractRight = function (connectAdjacent) {
if (!this.canContractRight())
if (!this.canContractRight(connectAdjacent))
return;
this.parent.contractColumnRight(this, connectAdjacent);
};
@@ -83,7 +83,7 @@
};
this.expandRight = function (connectAdjacent) {
if (!this.canExpandRight())
if (!this.canExpandRight(connectAdjacent))
return;
this.parent.expandColumnRight(this, connectAdjacent);
};
@@ -95,7 +95,7 @@
};
this.expandLeft = function (connectAdjacent) {
if (!this.canExpandLeft())
if (!this.canExpandLeft(connectAdjacent))
return;
this.parent.expandColumnLeft(this, connectAdjacent);
};
@@ -107,7 +107,7 @@
};
this.contractLeft = function (connectAdjacent) {
if (!this.canContractLeft())
if (!this.canContractLeft(connectAdjacent))
return;
this.parent.contractColumnLeft(this, connectAdjacent);
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -19,8 +19,8 @@
<li class="layout-panel-item layout-panel-action" title="@T("Decrease column offset (Alt+Left)")" ng-click="element.expandLeft(false)" ng-class="{disabled: !element.canExpandLeft(false)}"><i class="fa fa-outdent"></i></li>
<li class="layout-panel-item layout-panel-action" title="@T("Increase column offset (Alt+Right)")" ng-click="element.contractLeft(false)" ng-class="{disabled: !element.canContractLeft(false)}"><i class="fa fa-indent"></i></li>
</ul>
<div class="layout-column-resize-bar layout-column-resize-bar-left"></div>
<div class="layout-column-resize-bar layout-column-resize-bar-right"></div>
<div class="layout-column-resize-bar layout-column-resize-bar-left" ng-show="{{!element.isTemplated}}"></div>
<div class="layout-column-resize-bar layout-column-resize-bar-right" ng-show="{{!element.isTemplated}}"></div>
<div class="layout-container-children-placeholder">
@T("Drag an element from the toolbox and drop it here to add content.")
</div>