prevent toolbar from getting invisible when button visibilities change while toolbar is auto-hidden