motion-prime/elements/label.rb in motion-prime-0.4.1 vs motion-prime/elements/label.rb in motion-prime-0.4.2
- old
+ new
@@ -9,10 +9,10 @@
def view_class
"MPLabel"
end
def size_to_fit
- if computed_options[:size_to_fit] || style_options[:size_to_fit]
+ if computed_options[:size_to_fit]
if computed_options[:width]
view.setHeight([cached_content_outer_height, computed_options[:height]].compact.min)
else
view.sizeToFit
# we should re-set values, because sizeToFit do not use padding
\ No newline at end of file