CompanionDisplayer.prototype.buildMenu = function(menu)
{
var dynMenu = null;
dynMenu = document.createElement("toolbarbutton");
dynMenu.setAttribute("class","Bookmarks");
var myid = "dynmenu" + itemIdx;
itemIdx++;
dynMenu.setAttribute("id", myid);
dynMenu.setAttribute("label", menu.getTitle());
dynMenu.setAttribute("type","menu");
//rajr
dynMenu.setAttribute("align","left");
// now build the items inside the menu
dynMenu.appendChild(this.buildMenuPopup(menu.getItems()));
return dynMenu;
}
The "dynMenu.setAttribute("align","left");" is not having any affect.
{
var dynMenu = null;
dynMenu = document.createElement("toolbarbutton");
dynMenu.setAttribute("class","Bookmarks");
var myid = "dynmenu" + itemIdx;
itemIdx++;
dynMenu.setAttribute("id", myid);
dynMenu.setAttribute("label", menu.getTitle());
dynMenu.setAttribute("type","menu");
//rajr
dynMenu.setAttribute("align","left");
// now build the items inside the menu
dynMenu.appendChild(this.buildMenuPopup(menu.getItems()));
return dynMenu;
}
The "dynMenu.setAttribute("align","left");" is not having any affect.