[bugfix] Tab: auto scroll top when switched in sticky mode (#2105)

This commit is contained in:
neverland 2018-11-18 10:34:12 +08:00 committed by GitHub
parent 8db25006d7
commit ed71a88fc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ export default create({
this.setLine();
// scroll to correct position
if (this.position === 'page-top' || this.position === 'content-bottom') {
if (this.position === 'top' || this.position === 'bottom') {
scrollUtils.setScrollTop(window, scrollUtils.getElementTop(this.$el));
}
},