Skip to content

Commit

Permalink
refactor: remove ShadyCSS workaround (#783)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan authored Jan 4, 2021
1 parent b536f07 commit b928b3f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/vaadin-infinite-scroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,7 @@ class InfiniteScrollerElement extends PolymerElement {

get itemHeight() {
if (!this._itemHeightVal) {
if (!(window.ShadyCSS && window.ShadyCSS.nativeCss)) {
this.updateStyles();
}

const itemHeight = window.ShadyCSS
? window.ShadyCSS.getComputedStyleValue(this, '--vaadin-infinite-scroller-item-height')
: getComputedStyle(this).getPropertyValue('--vaadin-infinite-scroller-item-height');
const itemHeight = getComputedStyle(this).getPropertyValue('--vaadin-infinite-scroller-item-height');
// Use background-position temp inline style for unit conversion
const tmpStyleProp = 'background-position';
this.$.fullHeight.style.setProperty(tmpStyleProp, itemHeight);
Expand Down

0 comments on commit b928b3f

Please sign in to comment.