@@ -52,6 +52,9 @@ angular.module('ui.layout', [])
5252 if ( opts . disableMobileToggle ) {
5353 $element . addClass ( 'no-mobile-toggle' ) ;
5454 }
55+ if ( ! opts . showHandle ) {
56+ $element . addClass ( 'no-handle' ) ;
57+ }
5558
5659 // Initial global size definition
5760 opts . sizes = opts . sizes || [ ] ;
@@ -422,7 +425,7 @@ angular.module('ui.layout', [])
422425 el = splitter . element [ 0 ] . children [ 0 ] ;
423426 } else {
424427 splitter = ctrl . containers [ index - 1 ] ;
425- el = splitter . element [ 0 ] . children [ 1 ] ;
428+ el = splitter . element [ 0 ] . children [ 2 ] ;
426429 }
427430
428431 $timeout ( function ( ) {
@@ -688,7 +691,7 @@ angular.module('ui.layout', [])
688691
689692 //icon <a> elements
690693 var prevButton = angular . element ( element . children ( ) [ 0 ] ) ;
691- var afterButton = angular . element ( element . children ( ) [ 1 ] ) ;
694+ var afterButton = angular . element ( element . children ( ) [ 2 ] ) ;
692695
693696 //icon <span> elements
694697 var prevIcon = angular . element ( prevButton . children ( ) [ 0 ] ) ;
@@ -714,7 +717,7 @@ angular.module('ui.layout', [])
714717
715718 if ( previousSplitbar !== null ) {
716719 prevSplitbarBeforeButton = angular . element ( previousSplitbar . element . children ( ) [ 0 ] ) ;
717- prevSplitbarAfterButton = angular . element ( previousSplitbar . element . children ( ) [ 1 ] ) ;
720+ prevSplitbarAfterButton = angular . element ( previousSplitbar . element . children ( ) [ 2 ] ) ;
718721 }
719722
720723 if ( ctrl . isUsingColumnFlow ) {
@@ -774,7 +777,7 @@ angular.module('ui.layout', [])
774777
775778 if ( nextSplitbar !== null ) {
776779 nextSplitbarBeforeButton = angular . element ( nextSplitbar . element . children ( ) [ 0 ] ) ;
777- nextSplitbarAfterButton = angular . element ( nextSplitbar . element . children ( ) [ 1 ] ) ;
780+ nextSplitbarAfterButton = angular . element ( nextSplitbar . element . children ( ) [ 2 ] ) ;
778781 }
779782
780783 if ( ctrl . isUsingColumnFlow ) {
@@ -947,8 +950,9 @@ angular.module('ui.layout', [])
947950 var children = parent . children ( ) ;
948951 var index = ctrl . indexOfElement ( element ) ;
949952 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>' +
952956 '</div>' ) ;
953957 if ( 0 < index && ! ctrl . hasSplitbarBefore ( scope . container ) ) {
954958 angular . element ( children [ index - 1 ] ) . after ( splitbar ) ;
0 commit comments