Skip to content

Commit 02e6d4b

Browse files
Lucas Bragalia PoloLucas Bragalia Polo
authored andcommitted
adjusting max height in the screen resize and making scroll aways on top.
1 parent e25ad8a commit 02e6d4b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

paper-bottom-sheet.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@
106106
},
107107

108108
ready: function(){
109+
var $this = this;
110+
109111
this._hideBottomSheet();
110112

111113
this.animationConfig = {
@@ -130,9 +132,16 @@
130132
}
131133
]
132134
};
135+
136+
$(window).resize(function() {
137+
$this._setContentHeight();
138+
});
133139
},
134140

135141
open: function() {
142+
$(this.$.content).animate({
143+
scrollTop: 0
144+
});
136145
this._setContentHeight();
137146
this._showBottomSheet();
138147
this._setDialogPosition();

0 commit comments

Comments
 (0)