[BUG #8789] fixed toolbar overflow handling bug