added setMode( horizontal/vertical ) API
Merge branch 'master' into lulo