Skip to content

Commit 44b5ee8

Browse files
committed
Merge branch 'master' of github.com:nativescript-community/ui-collectionview
2 parents 7073634 + 87822ab commit 44b5ee8

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
@@ -192,7 +192,7 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
192192
this._innerWidth = width - this.effectivePaddingLeft - this.effectivePaddingRight;
193193
if (this.colWidth) {
194194
let newValue = toDevicePixels(this.colWidth, autoEffectiveColWidth, this._innerWidth); // We cannot use 0 for auto as it throws for android.
195-
if (global.isAndroid) {
195+
if (__ANDROID__) {
196196
newValue = Math.floor(newValue);
197197
}
198198
if (newValue !== this._effectiveColWidth) {
@@ -203,7 +203,7 @@ export abstract class CollectionViewBase extends View implements CollectionViewD
203203
this._innerHeight = height - this.effectivePaddingTop - this.effectivePaddingBottom;
204204
if (this.rowHeight) {
205205
let newValue = toDevicePixels(this.rowHeight, autoEffectiveRowHeight, this._innerHeight);
206-
if (global.isAndroid) {
206+
if (__ANDROID__) {
207207
newValue = Math.floor(newValue);
208208
}
209209
if (newValue !== this._effectiveRowHeight) {

0 commit comments

Comments
 (0)