Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Michael Guzman on Jan 22, 2009 09:12
open dhtmlx forum
Toolbar select button behavior in FF

Hi,
I have a select button in the toolbar. When I open the list and then click anywhere on the page, except the toolbar, it does not close.
This happens inn FF only, in IE it works fine.
Answer posted by Support on Jan 23, 2009 05:18
Hello,

Could you please provide your code?
Answer posted by Michael Guzman on Jan 23, 2009 06:55
------ From JSP ----------------  
var webBar = new dhtmlXToolbarObject("toolbarObj","dhx_blue");
            webBar.attachEvent("onClick",perform);
            webBar.attachEvent("onStateChange",showWindow);
            webBar.attachEvent("onEnter",onEnter);
 initMoreSpecialFavs('<%=request.getAttribute("numOfLayouts")%>');


-----Javascript------------------------
function initMoreSpecialFavs(numOfLayouts) {
    //webBar.addSeparator("lastSep",counter++);

    webBar.addButton("print", counter++,"","images/tool_print.gif","images/tool_print_dis.gif");
    webBar.setItemToolTip("print", "Print Window");
    webBar.disableItem("print");

    opts = Array(   Array('sep02','sep','', '' ),
                    Array('cascade','obj','Cascade Windows', null ),
                    Array('tile','obj','Tile Windows', null ),
                    Array('sep01','sep','', '' ),
                    Array('minimizeAll','obj','Minimize All', null ),
                    Array('maximizeAll','obj','Maximize All', null ),
                    Array('restoreAll','obj','Restore All', null )
                );
                
//    webBar.addButtonSelect("view", counter++,"",opts,"images/tool_view.png","images/tool_view_dis.gif");
//    webBar.setItemToolTip("view", "Select View");
//    opts = new Array();
    var opt = new Array();
    for ( i = 0; i< parseInt(numOfLayouts); i++) {
        opt[i] = new Array('layout'+(i+1), 'obj', 'Layout'+(i+1), null);
    }

    for ( j = 0; j<opts.length; j++ ) {
        opt[opt.length] = opts[j];
    }
    webBar.addButtonSelect("layouts", counter++, "Layout1", opt, null, null);
    webBar.setItemToolTip("layouts", "Select Layout");
    webBar.addInput("searchInput", counter++, "", 100);
    webBar.setItemToolTip("searchInput", "Search Text");
    webBar.addButton("searchAction", counter++, "", "images/tool_search.gif", "images/tool_search.gif")
    webBar.setItemToolTip("searchAction", "Run Search");
}
Answer posted by Support on Feb 03, 2009 09:33
Please try to add the following style:

<style>
    html, body {
        height: 100%;