Skip to content

Commit 4e18c20

Browse files
committed
Fix echarts overflow on Android
1 parent 405e9f7 commit 4e18c20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Echarts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { Component } from 'react';
2-
import { WebView, View, StyleSheet } from 'react-native';
2+
import { WebView, View, StyleSheet, Platform } from 'react-native';
33
import renderChart from './renderChart';
44
import echarts from './echarts.min';
55

@@ -21,7 +21,7 @@ export default class App extends Component {
2121
height: this.props.height || 400,
2222
backgroundColor: this.props.backgroundColor || 'transparent'
2323
}}
24-
scalesPageToFit={true}
24+
scalesPageToFit={Platform.OS !== 'ios'}
2525
source={require('./tpl.html')}
2626
onMessage={event => this.props.onPress ? this.props.onPress(JSON.parse(event.nativeEvent.data)) : null}
2727
/>

0 commit comments

Comments
 (0)