Fixed the top:auto not working when switching window size.
Release v1.0.7