Skip to content

Commit 8f87426

Browse files
authored
refactor: remove excessive __updateHorizontalScrollPosition call (#10305)
1 parent a14752c commit 8f87426

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

packages/grid/src/vaadin-grid-scroll-mixin.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { microTask, timeOut } from '@vaadin/component-base/src/async.js';
77
import { Debouncer } from '@vaadin/component-base/src/debounce.js';
88
import { getNormalizedScrollLeft } from '@vaadin/component-base/src/dir-utils.js';
99
import { OverflowController } from '@vaadin/component-base/src/overflow-controller.js';
10-
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
1110

1211
const timeouts = {
1312
SCROLLING: 500,
@@ -18,7 +17,7 @@ const timeouts = {
1817
* @polymerMixin
1918
*/
2019
export const ScrollMixin = (superClass) =>
21-
class ScrollMixin extends ResizeMixin(superClass) {
20+
class ScrollMixin extends superClass {
2221
static get properties() {
2322
return {
2423
/**
@@ -155,14 +154,6 @@ export const ScrollMixin = (superClass) =>
155154
this.addController(this.__overflowController);
156155
}
157156

158-
/**
159-
* @protected
160-
* @override
161-
*/
162-
_onResize() {
163-
this.__updateHorizontalScrollPosition();
164-
}
165-
166157
/**
167158
* Scroll to a flat index in the grid. The method doesn't take into account
168159
* the hierarchy of the items.

0 commit comments

Comments
 (0)