Skip to content

Commit

Permalink
fix(drop-menu):scrollable descided by drop-menu container & table height
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Apr 20, 2018
1 parent c2b9f8f commit 3e24188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/drop-menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default {
},
$_setScroller() {
const boxer = this.$el ? this.$el.querySelector('.md-popup-box') : null
if (boxer && boxer.clientHeight >= document.documentElement.clientHeight) {
if (boxer && boxer.clientHeight >= this.$el.clientHeight) {
this.scroller = '.md-field-content'
} else {
return ''
Expand Down

0 comments on commit 3e24188

Please sign in to comment.