Fix panel margin adjustment for Firefox