@@ -52,6 +52,9 @@ angular.module('ui.layout', [])
52
52
if ( opts . disableMobileToggle ) {
53
53
$element . addClass ( 'no-mobile-toggle' ) ;
54
54
}
55
+ if ( ! opts . showHandle ) {
56
+ $element . addClass ( 'no-handle' ) ;
57
+ }
55
58
56
59
// Initial global size definition
57
60
opts . sizes = opts . sizes || [ ] ;
@@ -422,7 +425,7 @@ angular.module('ui.layout', [])
422
425
el = splitter . element [ 0 ] . children [ 0 ] ;
423
426
} else {
424
427
splitter = ctrl . containers [ index - 1 ] ;
425
- el = splitter . element [ 0 ] . children [ 1 ] ;
428
+ el = splitter . element [ 0 ] . children [ 2 ] ;
426
429
}
427
430
428
431
$timeout ( function ( ) {
@@ -688,7 +691,7 @@ angular.module('ui.layout', [])
688
691
689
692
//icon <a> elements
690
693
var prevButton = angular . element ( element . children ( ) [ 0 ] ) ;
691
- var afterButton = angular . element ( element . children ( ) [ 1 ] ) ;
694
+ var afterButton = angular . element ( element . children ( ) [ 2 ] ) ;
692
695
693
696
//icon <span> elements
694
697
var prevIcon = angular . element ( prevButton . children ( ) [ 0 ] ) ;
@@ -714,7 +717,7 @@ angular.module('ui.layout', [])
714
717
715
718
if ( previousSplitbar !== null ) {
716
719
prevSplitbarBeforeButton = angular . element ( previousSplitbar . element . children ( ) [ 0 ] ) ;
717
- prevSplitbarAfterButton = angular . element ( previousSplitbar . element . children ( ) [ 1 ] ) ;
720
+ prevSplitbarAfterButton = angular . element ( previousSplitbar . element . children ( ) [ 2 ] ) ;
718
721
}
719
722
720
723
if ( ctrl . isUsingColumnFlow ) {
@@ -774,7 +777,7 @@ angular.module('ui.layout', [])
774
777
775
778
if ( nextSplitbar !== null ) {
776
779
nextSplitbarBeforeButton = angular . element ( nextSplitbar . element . children ( ) [ 0 ] ) ;
777
- nextSplitbarAfterButton = angular . element ( nextSplitbar . element . children ( ) [ 1 ] ) ;
780
+ nextSplitbarAfterButton = angular . element ( nextSplitbar . element . children ( ) [ 2 ] ) ;
778
781
}
779
782
780
783
if ( ctrl . isUsingColumnFlow ) {
@@ -947,8 +950,9 @@ angular.module('ui.layout', [])
947
950
var children = parent . children ( ) ;
948
951
var index = ctrl . indexOfElement ( element ) ;
949
952
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>' +
953
+ '<a><span class="ui-splitbar-icon ui-splitbar-toggle"></span></a>' +
954
+ '<a class="ui-splitbar-handle-container"><span class="ui-splitbar-icon ui-splitbar-handle"></span></a>' +
955
+ '<a><span class="ui-splitbar-icon ui-splitbar-toggle"></span></a>' +
952
956
'</div>' ) ;
953
957
if ( 0 < index && ! ctrl . hasSplitbarBefore ( scope . container ) ) {
954
958
angular . element ( children [ index - 1 ] ) . after ( splitbar ) ;
0 commit comments