Finally got this figured out, the line breaks in the html I got for the buttons was causing excessive padding. That was the only way I could find to fix it, removing line breaks. Some button codes required line breaks while other ones were able to ignore it.