motion-prime/elements/button.rb in motion-prime-0.4.1 vs motion-prime/elements/button.rb in motion-prime-0.4.2
- old
+ new
@@ -4,10 +4,10 @@
include MotionPrime::ElementContentTextMixin
after_render :size_to_fit
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
end
end
end
\ No newline at end of file