Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 74e5b2a

Browse files
committed
feat(handle): fixed retrieving after-button for previous and next splitbars
1 parent 209880b commit 74e5b2a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ui-layout.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ angular.module('ui.layout', [])
425425
el = splitter.element[0].children[0];
426426
} else {
427427
splitter = ctrl.containers[index - 1];
428-
el = splitter.element[0].children[1];
428+
el = splitter.element[0].children[2];
429429
}
430430

431431
$timeout(function(){
@@ -717,7 +717,7 @@ angular.module('ui.layout', [])
717717

718718
if(previousSplitbar !== null) {
719719
prevSplitbarBeforeButton = angular.element(previousSplitbar.element.children()[0]);
720-
prevSplitbarAfterButton = angular.element(previousSplitbar.element.children()[1]);
720+
prevSplitbarAfterButton = angular.element(previousSplitbar.element.children()[2]);
721721
}
722722

723723
if(ctrl.isUsingColumnFlow) {
@@ -777,7 +777,7 @@ angular.module('ui.layout', [])
777777

778778
if(nextSplitbar !== null) {
779779
nextSplitbarBeforeButton = angular.element(nextSplitbar.element.children()[0]);
780-
nextSplitbarAfterButton = angular.element(nextSplitbar.element.children()[1]);
780+
nextSplitbarAfterButton = angular.element(nextSplitbar.element.children()[2]);
781781
}
782782

783783
if(ctrl.isUsingColumnFlow) {

test/layout-scenar.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function splitMoveTests(description, startEvent, moveEvent, endEvent) {
141141

142142
beforeEach(function() {
143143
toggleBeforeButton = $splitbar.children()[0];
144-
toggleAfterButton = $splitbar.children()[1];
144+
toggleAfterButton = $splitbar.children()[2];
145145
});
146146

147147
it('should exist', function() {

0 commit comments

Comments
 (0)