This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1309,7 +1309,7 @@ MdPanelService.prototype._wrapTemplate = function(origTemplate) {
1309
1309
// height and width for positioning.
1310
1310
return '' +
1311
1311
'<div class="md-panel-outer-wrapper">' +
1312
- ' <div class="md-panel" style="left: -9999px; ">' + template + '</div>' +
1312
+ ' <div class="md-panel _md-panel-offscreen ">' + template + '</div>' +
1313
1313
'</div>' ;
1314
1314
} ;
1315
1315
@@ -1325,7 +1325,7 @@ MdPanelService.prototype._wrapTemplate = function(origTemplate) {
1325
1325
MdPanelService . prototype . _wrapContentElement = function ( contentElement ) {
1326
1326
var wrapper = angular . element ( '<div class="md-panel-outer-wrapper">' ) ;
1327
1327
1328
- contentElement . addClass ( 'md-panel' ) . css ( 'left' , '-9999px ') ;
1328
+ contentElement . addClass ( 'md-panel _md-panel-offscreen ' ) ;
1329
1329
wrapper . append ( contentElement ) ;
1330
1330
1331
1331
return wrapper ;
@@ -1918,8 +1918,8 @@ MdPanelRef.prototype._addStyles = function() {
1918
1918
// Theme the element and container.
1919
1919
self . _setTheming ( ) ;
1920
1920
1921
- // Remove left: -9999px and add hidden class.
1922
- self . panelEl . css ( 'left' , ' ') ;
1921
+ // Remove offscreen class and add hidden class.
1922
+ self . panelEl . removeClass ( '_md-panel-offscreen ') ;
1923
1923
self . panelContainer . addClass ( MD_PANEL_HIDDEN ) ;
1924
1924
1925
1925
resolve ( self ) ;
Original file line number Diff line number Diff line change 10
10
display : none ;
11
11
}
12
12
13
+ ._md-panel-offscreen {
14
+ left : -9999px ;
15
+ }
16
+
13
17
._md-panel-fullscreen {
14
18
border-radius : 0 ;
15
19
left : 0 ;
You can’t perform that action at this time.
0 commit comments