Skip to content

Commit

Permalink
Force overflow to hidden (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantrem authored Jul 28, 2020
1 parent bf7775b commit 9daae33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/@babylonjs/react-native/EngineView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const EngineView: FunctionComponent<EngineViewProps> = (props: EngineView

if (!failedInitialization) {
return (
<View style={props.style}>
<View style={[props.style, {overflow: "hidden"}]}>
<NativeEngineView style={{flex: 1}} />
{ fps && <Text style={{color: 'yellow', position: 'absolute', margin: 10, right: 0, top: 0}}>FPS: {Math.round(fps)}</Text> }
</View>
Expand Down

0 comments on commit 9daae33

Please sign in to comment.