Use fixed point in inspector

Reviewed By: achen1, TheSavior

Differential Revision: D5365796

fbshipit-source-id: 07a4de096c6b79e633c9b73d42744953396e2abe
This commit is contained in:
Spencer Ahrens 2017-07-06 14:44:00 -07:00 committed by Facebook Github Bot
parent 352c3d97b3
commit 1054644631
1 changed files with 2 additions and 3 deletions

View File

@ -35,10 +35,10 @@ class BoxInspector extends React.Component {
<BoxContainer title="padding" box={padding}>
<View>
<Text style={styles.innerText}>
({frame.left}, {frame.top})
({(frame.left || 0).toFixed(1)}, {(frame.top || 0).toFixed(1)})
</Text>
<Text style={styles.innerText}>
{frame.width} &times; {frame.height}
{(frame.width || 0).toFixed(1)} &times; {(frame.height || 0).toFixed(1)}
</Text>
</View>
</BoxContainer>
@ -110,4 +110,3 @@ var styles = StyleSheet.create({
});
module.exports = BoxInspector;