File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -681,7 +681,8 @@ var BoldGrid = BoldGrid || {};
681
681
headerBottom = $headerContainer . offset ( ) . top + $headerContainer . outerHeight ( ) ,
682
682
subMenuWidth = $subMenu . children ( 'li' ) . outerWidth ( ) ,
683
683
subMenuHeight = $subMenu . outerHeight ( true ) + pointerHeight ,
684
- rightOffset = $ ( window ) . outerWidth ( true ) - ( leftOffset + subMenuWidth ) ;
684
+ rightOffset = $ ( window ) . outerWidth ( true ) - ( leftOffset + subMenuWidth ) ,
685
+ screenWidth = $ ( window ) . width ( ) + 16 ;
685
686
686
687
// Adjust the offset for menu items in the footer so it opens upwards instead of down.
687
688
if ( bottomOffset > headerBottom && $subMenu . closest ( '#colophon' ) . length ) {
@@ -693,6 +694,11 @@ var BoldGrid = BoldGrid || {};
693
694
}
694
695
695
696
// Adjust left or right offset if submenu goes off screen.
697
+ if ( 992 >= screenWidth ) {
698
+ $subMenu . css ( 'left' , 0 ) ;
699
+ return ;
700
+ }
701
+
696
702
if ( 0 > rightOffset ) {
697
703
$subMenu . css ( 'left' , rightOffset ) ;
698
704
}
You can’t perform that action at this time.
0 commit comments