copleted auto resize box width