 
 
   editStart: =>
+    @textarea.style.minHeight = "#{@messageBody.getBoundingClientRect().height + 50}px"
+
     @setState editing: true, =>
-      @refs.textarea.focus()
+      @textarea.focus()
 
 
   editEnd: =>


    div className: "#{bn}__message-container #{'hidden' if !@state.editing}",
      textarea
        ref: 'textarea'
        className: "#{bn}__message #{bn}__message--editor"
        onChange: @messageInput
        onKeyDown: @submitIfEnter

    div className: "#{bn}__message-container #{'hidden' if @state.editing}",
      div
        className: "#{bn}__message"
        ref: (el) => @messageBody = el
        dangerouslySetInnerHTML:
          __html: BeatmapDiscussionHelper.linkTimestamp(osu.linkify(_.escape(@props.post.message)), ["#{bn}__timestamp"])

