modify for minHeight 2013-5-26