Lock vertical resize of the dock in Mac OS X I can't find a way to make my dock only resize horizontally when new apps appear. Currently when one does, the whole dock shrinks vertically and expands horizontally.

Is there any way to only expand the dock horizontally?
I think I found a way to lock the change of icons' size in dock:

defaults write com.apple.Dock size-immutable -bool yes