Fixing minWidth/Height check logic

Signed-off-by: shyeon.kim <shyeon.kim@scipi.net>