add window adapt limit size