added new autoSize mode: 'BOTH_DIRECTIONS' (refs #272)