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

Commit 232c612

Browse files
committed
feat(handle): added a handle to the splitbar markup
1 parent 6be6827 commit 232c612

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/ui-layout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
}
129129

130130
/* Allow disabling of icons */
131-
.no-toggle .ui-splitbar-icon {
131+
.no-toggle .ui-splitbar-toggle {
132132
display: none;
133133
}
134134

src/ui-layout.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ angular.module('ui.layout', [])
688688

689689
//icon <a> elements
690690
var prevButton = angular.element(element.children()[0]);
691-
var afterButton = angular.element(element.children()[1]);
691+
var afterButton = angular.element(element.children()[2]);
692692

693693
//icon <span> elements
694694
var prevIcon = angular.element(prevButton.children()[0]);
@@ -947,8 +947,9 @@ angular.module('ui.layout', [])
947947
var children = parent.children();
948948
var index = ctrl.indexOfElement(element);
949949
var splitbar = angular.element('<div ui-splitbar>' +
950-
'<a><span class="ui-splitbar-icon"></span></a>' +
951-
'<a><span class="ui-splitbar-icon"></span></a>' +
950+
'<a><span class="ui-splitbar-icon ui-splitbar-toggle"></span></a>' +
951+
'<a><span class="ui-splitbar-icon ui-splitbar-handle ui-splitbar-icon-up"></span></a>' +
952+
'<a><span class="ui-splitbar-icon ui-splitbar-toggle"></span></a>' +
952953
'</div>');
953954
if(0 < index && !ctrl.hasSplitbarBefore(scope.container)) {
954955
angular.element(children[index-1]).after(splitbar);

0 commit comments

Comments
 (0)