We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08e52e5 + d40bc01 commit 08c9b83Copy full SHA for 08c9b83
commands/FBVisualizationCommands.py
@@ -100,8 +100,8 @@ def _showLayer(layer):
100
layer = '(' + layer + ')'
101
size = '((CGRect)[(id)' + layer + ' bounds]).size'
102
103
- width = float(fb.evaluateExpression(size + '.width'))
104
- height = float(fb.evaluateExpression(size + '.height'))
+ width = float(fb.evaluateExpression('(CGFloat)(' + size + '.width)'))
+ height = float(fb.evaluateExpression('(CGFloat)(' + size + '.height)'))
105
if width == 0.0 or height == 0.0:
106
print 'Nothing to see here - the size of this element is {} x {}.'.format(width, height)
107
return
0 commit comments