Fix cross-browser issues with the toolbar positioning