Skip to content

Commit

Permalink
fix: edge sider height
Browse files Browse the repository at this point in the history
  • Loading branch information
sendya committed Mar 1, 2019
1 parent a22763e commit d74030c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/page/GlobalLayout.vue
Expand Up @@ -121,6 +121,18 @@ export default {
this.menus = this.mainMenu.find((item) => item.path === '/').children
this.collapsed = !this.sidebarOpened
},
mounted () {
const userAgent = navigator.userAgent
if (userAgent.indexOf('Edge') > -1) {
this.$nextTick(() => {
this.collapsed = !this.collapsed
setTimeout(() => {
this.collapsed = !this.collapsed
}, 16)
})
}
},
methods: {
...mapActions(['setSidebar']),
toggle () {
Expand Down Expand Up @@ -158,6 +170,7 @@ export default {
}
.layout.ant-layout {
height: auto;
overflow-x: hidden;
&.mobile,&.tablet {
Expand Down Expand Up @@ -488,6 +501,7 @@ export default {
box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
position: relative;
z-index: 10;
height: auto;
.ant-layout-sider-children:hover {
overflow-y: auto;
Expand Down

0 comments on commit d74030c

Please sign in to comment.