Skip to content

Commit

Permalink
Merge pull request #16166 from ymg2006/scrollHeight_flex_init
Browse files Browse the repository at this point in the history
When scrollHeight is '100%' setSpacerSize() should not set static height to the scroller
  • Loading branch information
cetincakiroglu committed Aug 8, 2024
2 parents 2eb5386 + e7b611b commit ad01582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/scroller/scroller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,7 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD
}

setSpacerSize() {
if (this._items) {
if (this._scrollHeight !== '100%' && this._items) {
const contentPos = this.getContentPosition();
const setProp = (_name: string, _value: any, _size: number, _cpos: number = 0) => (this.spacerStyle = { ...this.spacerStyle, ...{ [`${_name}`]: (_value || []).length * _size + _cpos + 'px' } });

Expand Down

0 comments on commit ad01582

Please sign in to comment.