This hack is for older code that broke the maximize button in current version, making it slightly bigger than other elements.
This patch removes the hack since it is not needed for the buttons, and replaces it with the current code in master.