Skip to content

Commit 16b476c

Browse files
committed
chore: cleanup
1 parent 1594e68 commit 16b476c

File tree

1 file changed

+0
-39
lines changed

1 file changed

+0
-39
lines changed

src/collectionview/index-common.ts

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -213,49 +213,10 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
213213
}
214214
return lastInnerWidth !== this._innerWidth || lastInnerHeight !== this._innerHeight;
215215
}
216-
// public onLayout(left: number, top: number, right: number, bottom: number) {
217-
// super.onLayout(left, top, right, bottom);
218-
// // on ios and during device rotation the getMeasuredWidth and getMeasuredHeight are wrong
219-
// // so we use left, top , right, bottom
220-
// this.updateInnerSize();
221-
// }
222216
public onMeasure(widthMeasureSpec: number, heightMeasureSpec: number) {
223217
super.onMeasure(widthMeasureSpec, heightMeasureSpec);
224-
// on ios and during device rotation the getMeasuredWidth and getMeasuredHeight are wrong
225-
// so we use left, top , right, bottom
226218
this.updateInnerSize();
227219
}
228-
// _onSizeChanged() {
229-
// super._onSizeChanged();
230-
// this.onSizeChanged(this.getMeasuredWidth(), this.getMeasuredHeight());
231-
// }
232-
// @profile
233-
// public onSizeChanged(measuredWidth: number, measuredHeight: number) {
234-
// let changed = false;
235-
// this._innerWidth = measuredWidth - this.effectivePaddingLeft - this.effectivePaddingRight;
236-
// if (this.colWidth) {
237-
// const newValue = PercentLength.toDevicePixels(this.colWidth, autoEffectiveColWidth, this._innerWidth); // We cannot use 0 for auto as it throws for android.
238-
// if (newValue !== this._effectiveColWidth) {
239-
// this._effectiveColWidth = newValue;
240-
// changed = true;
241-
// }
242-
// }
243-
244-
// this._innerHeight = measuredHeight - this.effectivePaddingTop - this.effectivePaddingBottom;
245-
// if (this.rowHeight) {
246-
// const newValue = PercentLength.toDevicePixels(this.rowHeight, autoEffectiveRowHeight, this._innerHeight);
247-
// if (newValue !== this._effectiveRowHeight) {
248-
// this._effectiveRowHeight = newValue;
249-
// changed = true;
250-
// }
251-
// }
252-
// if (changed) {
253-
// this.refresh();
254-
// }
255-
// }
256-
// public onLayout(left: number, top: number, right: number, bottom: number) {
257-
// super.onLayout(left, top, right, bottom);
258-
// }
259220
items: any[] | ItemsSource;
260221

261222
@profile

0 commit comments

Comments
 (0)