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

Commit b9b6203

Browse files
EladBezalelThomasBurleson
authored andcommitted
fix(panel): attached panels to body
- Used global styles - attached panels to body Closes #8420
1 parent 296f1c7 commit b9b6203

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/components/panel/demoBasicUsage/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ BasicDemoCtrl.prototype.showDialog = function() {
2626
.center();
2727

2828
var config = {
29-
attachTo: '.demo-md-panel',
29+
attachTo: angular.element(document.body),
3030
controller: PanelDialogCtrl,
3131
controllerAs: 'ctrl',
3232
disableParentScroll: this.disableParentScroll,
@@ -51,7 +51,7 @@ BasicDemoCtrl.prototype.showMenu = function(ev) {
5151
.addPanelPosition(this._mdPanel.xPosition.ALIGN_START, this._mdPanel.yPosition.BELOW);
5252

5353
var config = {
54-
attachTo: '.demo-md-panel',
54+
attachTo: angular.element(document.body),
5555
controller: PanelMenuCtrl,
5656
controllerAs: 'ctrl',
5757
template:

src/components/panel/demoPanelAnimations/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ AnimationCtrl.prototype.showDialog = function() {
6969

7070
var config = {
7171
animation: animation,
72-
attachTo: angular.element(document.querySelector('.demo-md-panel-animation')),
72+
attachTo: angular.element(document.body),
7373
controller: DialogCtrl,
7474
controllerAs: 'ctrl',
7575
templateUrl: 'panel.tmpl.html',

src/core/style/variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ $swift-linear-duration: 0.08s !default;
111111
$swift-linear-timing-function: linear !default;
112112
$swift-linear: all $swift-linear-duration $swift-linear-timing-function !default;
113113

114-
$material-enter-duration: 0.5s;
114+
$material-enter-duration: 0.3s;
115115
$material-enter-timing-function: cubic-bezier(0.0, 0.0, 0.2, 1);
116116
$material-enter: all $material-enter-duration $material-enter-timing-function;
117117

118-
$material-leave-duration: 0.5s;
118+
$material-leave-duration: 0.3s;
119119
$material-leave-timing-function: cubic-bezier(0.4, 0.0, 1, 1);
120120
$material-leave: all $material-leave-duration $material-leave-timing-function;
121121

0 commit comments

Comments
 (0)