mikekatz/MKToggleButton

incorrect default edge insets

Opened this issue · 4 comments

Line 59 of MKToggleButton.m has this line:

self.contentEdgeInsets = UIEdgeInsetsMake(4., 3., 5., 3.);

This causes the text to be located in a bit of a strange place and caused the solid, filled version of the button to not entirely fill the button leaving an unfilled strip at the bottom. Removing this line made it work properly for me.

Do you have a sample? It probably has to do with the size of the internal text bounds vs the button frame?

This is what it looks like
mktogglebutton_issue_2

Also if I add insets to my button using Interface Builder, I get the same missing fill behavior.

I have this problem also.