incorrect default edge insets
Opened this issue · 4 comments
jpaas commented
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.
mikekatz commented
Do you have a sample? It probably has to do with the size of the internal text bounds vs the button frame?
jpaas commented
jpaas commented
Also if I add insets to my button using Interface Builder, I get the same missing fill behavior.
shmidt commented
I have this problem also.