setLength on OnlineDocument