fix popup buttons become invisible when date is selected

In the popup menu, the button size was calculated without the border, so
when a date was selected, the buttons got bigger and pushed the
navigation out of the display.