/ fix strange behavior when toolbar size changed