Grow document editor to fit floating window