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

Commit

Permalink
fix(demos): dialog, bottomsheet, and toast now display within properl…
Browse files Browse the repository at this point in the history
…y within the bounding demo area
  • Loading branch information
ThomasBurleson committed Nov 9, 2014
1 parent be8b51a commit 5909f0a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/components/backdrop/backdrop-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ $backdrop-color: rgba(0,0,0,0.3);

md-backdrop.md-opaque.md-#{$theme-name}-theme {
background-color: $backdrop-color;
position:absolute
}
2 changes: 1 addition & 1 deletion src/components/bottomSheet/_bottomSheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ $bottom-sheet-header-height: 7 * $baseline-grid;
$bottom-sheet-grid-font-weight: 300;

md-bottom-sheet {
position: fixed;
position: absolute;
left: 0;
right: 0;
bottom: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/dialog/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
justify-content: center;
align-items: center;
position: fixed;
position: absolute;
left: 0;
top: 0;
right: 0;
Expand Down
4 changes: 2 additions & 2 deletions src/components/toast/_toast.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// See height set globally, depended on by buttons
md-toast {
display: flex;
display: block;
position:absolute;
box-sizing: border-box;
align-items: center;

Expand All @@ -13,7 +14,6 @@ md-toast {
font-size: 14px;
cursor: default;

position: fixed;
max-width: 879px;
max-height: 40px;

Expand Down
2 changes: 1 addition & 1 deletion src/components/toast/demoBasicUsage/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div ng-controller="AppCtrl">
<div ng-controller="AppCtrl" style="position:absolute;display: block; width: 100%">
<div style="padding: 24px;">
<p>Toast can be dismissed with a swipe, a timer, or a button.</p>
<div class="inset" layout="vertical" layout-sm="horizontal" layout-align="center">
Expand Down
2 changes: 1 addition & 1 deletion src/components/toast/toast.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function MdToastService($timeout, $$interimElement, $animate, $mdSwipe, $mdThemi
onRemove: onRemove,
position: 'bottom left',
themable: true,
hideDelay: 3000,
hideDelay: 3000
};

var $mdToast = $$interimElement(factoryDef);
Expand Down

0 comments on commit 5909f0a

Please sign in to comment.