motion-prime/support/mp_button.rb in motion-prime-1.0.6 vs motion-prime/support/mp_button.rb in motion-prime-1.0.7
- old
+ new
@@ -32,10 +32,12 @@
def apply_padding!(rect)
self.setTitleEdgeInsets(padding_insets)
end
def apply_padding?
- super && !@custom_title_inset_drawn
+ # TODO: we should run super method here, but for some reason it doesn't work in RM 2.32
+ ![padding_top, padding_left, padding_right, padding_bottom].all?(&:zero?) &&
+ !@custom_title_inset_drawn
end
def drawRect(rect)
apply_padding(rect)
super
\ No newline at end of file