motion-prime/elements/button.rb in motion-prime-0.3.3 vs motion-prime/elements/button.rb in motion-prime-0.4.0
- old
+ new
@@ -6,10 +6,10 @@
after_render :size_to_fit
def size_to_fit
if computed_options[:size_to_fit] || style_options[:size_to_fit]
if computed_options[:width]
- view.setHeight content_outer_height
+ view.setHeight cached_content_outer_height
end
end
end
def view_class
\ No newline at end of file