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


      # Append that div.
      @wrapperElement.appendChild @iceElement

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

      @paletteHeader.style.fontSize = "#{fontSize}px"
      @gutter.style.fontSize = "#{fontSize}px"

      @view.opts.textHeight =
        @dragView.opts.textHeight = getFontHeight @fontFamily, @fontSize

      @view.clearCache()

      @dragView.clearCache()

      @gutter.style.width = @aceEditor.renderer.$gutterLayer.gutterWidth + 'px'
