Skip to content

Commit fa0c616

Browse files
committed
chore: refactor
1 parent 19ca7e1 commit fa0c616

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/collectionview/index-common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
189189
this._innerWidth = width - this.effectivePaddingLeft - this.effectivePaddingRight;
190190
if (this.colWidth) {
191191
let newValue = toDevicePixels(this.colWidth, autoEffectiveColWidth, this._innerWidth); // We cannot use 0 for auto as it throws for android.
192-
if (global.isAndroid) {
192+
if (__ANDROID__) {
193193
newValue = Math.floor(newValue);
194194
}
195195
if (newValue !== this._effectiveColWidth) {
@@ -200,7 +200,7 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
200200
this._innerHeight = height - this.effectivePaddingTop - this.effectivePaddingBottom;
201201
if (this.rowHeight) {
202202
let newValue = toDevicePixels(this.rowHeight, autoEffectiveRowHeight, this._innerHeight);
203-
if (global.isAndroid) {
203+
if (__ANDROID__) {
204204
newValue = Math.floor(newValue);
205205
}
206206
if (newValue !== this._effectiveRowHeight) {

0 commit comments

Comments
 (0)