       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
 

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

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


    resizeBlockMode: ->
      @resizeTextMode()

      @dropletElement.style.height = "#{@wrapperElement.clientHeight}px"
      if @paletteEnabled
        @dropletElement.style.left = "#{@paletteElement.offsetWidth}px"
        @dropletElement.style.width = "#{@wrapperElement.clientWidth - @paletteWrapper.offsetWidth}px"
      else
        @dropletElement.style.left = "0px"
        @dropletElement.style.width = "#{@wrapperElement.clientWidth}px"

      @resizeGutter()

