           @redrawTextInput()
 
   hook 'resize', 0, ->
-    @aceElement.style.width = "#{@iceElement.offsetWidth}px"
-    @aceElement.style.height = "#{@iceElement.offsetHeight}px"
+    @aceElement.style.width = "#{@wrapperElement.offsetWidth}px"
+    @aceElement.style.height = "#{@wrapperElement.offsetHeight}px"
 
   last_ = (array) -> array[array.length - 1]
 


      # Append that div.
      @wrapperElement.appendChild @iceElement

      # ### Tracker
      # Create the div that will track all the ICE editor mouse movement

    resize: ->
      @iceElement.style.left = "#{@paletteElement.offsetWidth}px"
      @iceElement.style.height = "#{@wrapperElement.offsetHeight}px"
      @iceElement.style.width ="#{@wrapperElement.offsetWidth - @paletteWrapper.offsetWidth}px"

      @mainCanvas.height = @iceElement.offsetHeight
      @mainCanvas.width = @iceElement.offsetWidth - @gutter.offsetWidth
