       setTimeout (=>
         # Hide scrollbars and increase width
         @mainScroller.style.overflow = 'hidden'
-        @dropletElement.style.width = @wrapperElement.offsetWidth + 'px'
+        @dropletElement.style.width = @wrapperElement.clientWidth + 'px'
 
         @redrawMain noText: true
 

          @redrawTextInput()

  Editor::resizeAceElement = ->
    width = @wrapperElement.offsetWidth
    if @showPaletteInTextMode and @paletteEnabled
      width -= @paletteElement.offsetWidth

    @aceElement.style.width = "#{width}px"
    @aceElement.style.height = "#{@wrapperElement.offsetHeight}px"

  last_ = (array) -> array[array.length - 1]


      else
        @mainScroller.style.overflowX = 'hidden'
      @mainScroller.style.overflowY = 'hidden'
      @dropletElement.style.width = @wrapperElement.clientWidth + 'px'

      @currentlyUsingBlocks = false; @currentlyAnimating = @currentlyAnimating_suppressRedraw = true

