Skip to content

Commit

Permalink
Remove legacy Edge workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Dec 8, 2020
1 parent 6e5671b commit 8a4e5cf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/vaadin-tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ class TabsElement extends ElementMixin(
const scrollPosition = this._vertical
? this._scrollerElement.scrollTop
: this.__getNormalizedScrollLeft(this._scrollerElement);
let scrollSize = this._vertical ? this._scrollerElement.scrollHeight : this._scrollerElement.scrollWidth;
// In Edge we need to adjust the size in 1 pixel
scrollSize -= 1;
const scrollSize = this._vertical ? this._scrollerElement.scrollHeight : this._scrollerElement.scrollWidth;

let overflow = scrollPosition > 0 ? 'start' : '';
overflow += scrollPosition + this._scrollOffset < scrollSize ? ' end' : '';
Expand Down

0 comments on commit 8a4e5cf

Please sign in to comment.