motion-prime/elements/label.rb in motion-prime-0.1.7 vs motion-prime/elements/label.rb in motion-prime-0.2.0
- old
+ new
@@ -7,7 +7,15 @@
def size_to_fit
if computed_options[:size_to_fit] || style_options[:size_to_fit]
view.sizeToFit
end
end
+
+ def computed_inner_top
+ computed_options[:top].to_i
+ end
+
+ def computed_inner_bottom
+ computed_options[:bottom].to_i
+ end
end
end
\ No newline at end of file