Fix docks resize issue when image toolbar visible in viewer