Added toolbar auto shrink

Also crash fix with disabling and again enabling auto shrink