File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments