add expand_vertical and expand_horizontal flags
Authored by: astraw 2008-06-03
Parent: [r5369]
Child: [r5371]