new property setting.canShowLeft and canShowRight. and fix some bug.