Fixed the bug

Version: 2.1
Date: 2014-8-12 16:55:25

Signed-off-by: jssoscar
Fixed the bug when direction is bottom

Version: 2.3.1
Date: 2014-8-12 16:55:25

Signed-off-by: jssoscar