Use fixed point in inspector
Reviewed By: achen1, TheSavior Differential Revision: D5365796 fbshipit-source-id: 07a4de096c6b79e633c9b73d42744953396e2abe
This commit is contained in:
parent
352c3d97b3
commit
1054644631
|
@ -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} × {frame.height}
|
||||
{(frame.width || 0).toFixed(1)} × {(frame.height || 0).toFixed(1)}
|
||||
</Text>
|
||||
</View>
|
||||
</BoxContainer>
|
||||
|
@ -110,4 +110,3 @@ var styles = StyleSheet.create({
|
|||
});
|
||||
|
||||
module.exports = BoxInspector;
|
||||
|
||||
|
|
Loading…
Reference in New Issue