       displayedButton.className = "biojs_msa_menubar_alink"
 
       # tiny style
-      displayedButton.style.fontSize = @g.zoomer.get "menuFontsize"
-      displayedButton.style.marginLeft = @g.zoomer.get "menuMarginLeft"
-      displayedButton.style.padding = @g.zoomer.get "menuPadding"
+      if @g?
+        menuUl.style.fontSize = @g.zoomer.get "menuItemFontsize"
+        displayedButton.style.fontSize = @g.zoomer.get "menuFontsize"
+        displayedButton.style.marginLeft = @g.zoomer.get "menuMarginLeft"
+        displayedButton.style.padding = @g.zoomer.get "menuPadding"
 
       jbone(displayedButton).on "click", (e) =>
         @_showMenu e,menu,displayedButton

        for key,style of node.style
          li.style[key] = style
        li.addEventListener "click", node.callback
        li.style.lineHeight = @g.zoomer.get "menuItemLineHeight"

        menuUl.appendChild li



    addNode: (label, callback, data) ->
      style = data.style if data?
      @_nodes = [] unless @_nodes?
      @_nodes.push {label: label, callback: callback, style: style}

    buildDOM: ->
