mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-25 12:55:41 +08:00
Use fixed point in inspector
Reviewed By: achen1, TheSavior Differential Revision: D5365796 fbshipit-source-id: 07a4de096c6b79e633c9b73d42744953396e2abe
This commit is contained in:
committed by
Facebook Github Bot
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user