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

Commit

Permalink
fix(dialog): styling custom dialog wrapped in form
Browse files Browse the repository at this point in the history
Closes #2637
  • Loading branch information
Marcy Sutton committed May 8, 2015
1 parent 9110d1e commit 666630c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dialog/demoBasicUsage/dialog1.tmpl.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<md-dialog aria-label="Mango (Fruit)">

<form>
<md-dialog-content class="sticky-container">
<md-subheader class="md-sticky-no-effect">Mango (Fruit)</md-subheader>
<div>
Expand Down Expand Up @@ -30,5 +30,5 @@
Useful
</md-button>
</div>

</form>
</md-dialog>
6 changes: 6 additions & 0 deletions src/components/dialog/dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,14 @@ md-dialog {
display: flex;
flex-direction: column;

&> form {
display: flex;
flex-direction: column;
overflow: auto;
}
md-dialog-content {
order: 1;
flex-direction: column;
padding: $dialog-padding;
overflow: auto;
-webkit-overflow-scrolling: touch;
Expand Down

1 comment on commit 666630c

@Rouby
Copy link

@Rouby Rouby commented on 666630c May 11, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

This change causes two scrollbars for me. Google Chrome, Version 42.0.2311.135 m

Please sign in to comment.