From 2afcd2181e7409e5a2061e006afcd16ddcd319b8 Mon Sep 17 00:00:00 2001 From: Sebastien Vachon <svachon@microsoft.com> Date: Thu, 14 Apr 2016 12:53:34 -0700 Subject: [PATCH 1/2] Updated styling of the tooltip inner TouchableHighlight to fill the the size of the tooltip container --- ToolTip.ios.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ToolTip.ios.js b/ToolTip.ios.js index 1d16dc3..5a50e09 100644 --- a/ToolTip.ios.js +++ b/ToolTip.ios.js @@ -50,6 +50,12 @@ var ViewClass = React.createClass({ } else { props.onPress = this.showMenu; } + + // Override the style for the touchable highlight to fill the size of the tooltip container. + props.style = { + flex: 1, + alignSelf: 'stretch' + }; return props; }, @@ -64,7 +70,7 @@ var ViewClass = React.createClass({ render: function() { return ( - <RCTToolTipText ref='toolTipText' onChange={this.handleToolTipTextChange}> + <RCTToolTipText ref='toolTipText' onChange={this.handleToolTipTextChange} style={this.props.style}>> <TouchableHighlight {...this.getTouchableHighlightProps()} > From 64de76876f69eae2804627640863826d37ce2ac9 Mon Sep 17 00:00:00 2001 From: Sebastien Vachon <svachon@microsoft.com> Date: Thu, 14 Apr 2016 13:53:16 -0700 Subject: [PATCH 2/2] Fixed typo --- ToolTip.ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ToolTip.ios.js b/ToolTip.ios.js index 5a50e09..97653c6 100644 --- a/ToolTip.ios.js +++ b/ToolTip.ios.js @@ -70,7 +70,7 @@ var ViewClass = React.createClass({ render: function() { return ( - <RCTToolTipText ref='toolTipText' onChange={this.handleToolTipTextChange} style={this.props.style}>> + <RCTToolTipText ref='toolTipText' onChange={this.handleToolTipTextChange} style={this.props.style}> <TouchableHighlight {...this.getTouchableHighlightProps()} >