motion-prime/elements/label.rb in motion-prime-1.0.0 vs motion-prime/elements/label.rb in motion-prime-1.0.1
- old
+ new
@@ -17,10 +17,10 @@
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
view.setWidth(view.bounds.size.width + content_padding_width)
- view.setHeight(view.bounds.size.height + content_padding_height)
+ view.setHeight(computed_options[:height] || (view.bounds.size.height + content_padding_height))
end
end
end
def size_to_fit_if_needed
\ No newline at end of file