Auto resize inner frame with top. Fix #4.
fix #1