Small Changes. use if isHorizontal.. isToptoBottom...
Small change to be in sync with sp-guieditor