Call cm dom setup before _ready

make sure layout has been calculated before initializing .jquery.autosize
Merge pull request #1169 from christopheschwyzer/issue-1169

Call cm dom setup before _ready