Refresh editor after resizing elements