From 58d01c798158605f7a92feb8efab4d56923989cc Mon Sep 17 00:00:00 2001 From: Olivier Notteghem Date: Thu, 18 Jun 2015 05:42:45 -0700 Subject: [PATCH] [RN Inspector] : fix CSS not to use view overflow which is not supported on iOS --- Libraries/Inspector/Inspector.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Libraries/Inspector/Inspector.js b/Libraries/Inspector/Inspector.js index 46615d967b..fa6e20e08e 100644 --- a/Libraries/Inspector/Inspector.js +++ b/Libraries/Inspector/Inspector.js @@ -66,14 +66,9 @@ class Inspector extends React.Component { } render() { - var panelPosition; - if (this.state.panelPos === 'bottom') { - panelPosition = {bottom: -Dimensions.get('window').height}; - } else { - panelPosition = {top: 0}; - } + var panelContainerStyle = (this.state.panelPos === 'bottom') ? {bottom: 0} : {top: 0}; return ( - + {this.state.inspecting && } - +