       @paletteCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.palette.x, -@scrollOffsets.palette.y
       @paletteHighlightCtx.setTransform 1, 0, 0, 1, -@scrollOffsets.palette.x, -@scrollOffsets.palette.y
 
-
-      @redrawPalette()
+      @rebuildPalette()
 
 
   Editor::resize = ->

    if @currentHighlightedPaletteBlock?
      @paletteHighlightPath.draw @paletteHighlightCtx

  hook 'redraw_palette', 0, ->
    # Remove the existent blocks
    @paletteScrollerStuffing.innerHTML = ''



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

      @redrawMain()
      @rebuildPalette()

  Editor::setFontFamily = (fontFamily) ->
    @draw.setGlobalFontFamily fontFamily
