From 8a4e5cfeaa5af03cc73b4b29952de91865cb1f5c Mon Sep 17 00:00:00 2001 From: web-padawan Date: Tue, 8 Dec 2020 11:07:49 +0200 Subject: [PATCH] Remove legacy Edge workaround --- src/vaadin-tabs.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/vaadin-tabs.js b/src/vaadin-tabs.js index 7ed582e..a3ff1bd 100644 --- a/src/vaadin-tabs.js +++ b/src/vaadin-tabs.js @@ -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' : '';