height-width bug fix, various event bug fixes
height-width bug fix, various event bug fixes