Minor fix resize function (1px offset)

There was a 1px offset hiding the border of the toolbar when collapsing the header.