Results 1 to 2 of 2

Thread: panel setvisible not working in safari

  1. #1
    Sencha User
    Join Date
    Sep 2008
    Posts
    81

    Default panel setvisible not working in safari

    I have 3 child panels inside a parent panel, i show only 1 panel at any time, hiding others when activating one. Code works fine in Safari, IE7, IE8 but it doesn't work in safari (if anything i'd expect IE to fail not safari) It's a big code but i post relevant parts only...

    Initial config... Only search panel is visible

    Code:
    reportSearch = new Ext.Panel({
        contentEl:'reportSearch'
    });
    
    reportSummary = new Ext.Panel({
        title: 'Results',
        contentEl:'reportSummary',
        hidden: true,
        layout: 'anchor',
        items:[summaryGrid]
    });
    
    reportViewEdit = new Ext.Panel({
        contentEl:'reportViewEdit',
        hidden: true
    });
    
    reportsPanel = new Ext.Panel({
        id: 'reportsPanel',
        layout:'anchor',
        title: 'Reports',
        items: [reportSearch, reportSummary, reportViewEdit]
    });
    later i activate summary panel...
    Code:
    activatePanel(reportSummary);
    console.log("search panel visible is " + reportSearch.isVisible());
    console.log("summary panel visible is " + reportSummary.isVisible());
    
    function activatePanel(panel)
    {
        for(var i=0; i< reportsPanel.items.length; i++)
        {
            if(reportsPanel.items.itemAt(i) != panel)
            {
                reportsPanel.items.itemAt(i).setVisible(false);
            }
        }
        panel.setVisible(true);
        panel.doLayout();
    }
    When the code runs.. In Firefox, it hides the search panel and shows the summary panel, and firebug console says

    search panel visible is false
    summary panel visible is true

    in Safari it hides the search panel but doesn't show summary panel and inspector console says

    summary panel visible is false

    search panel visible is true


    Am i doing something wrong?

    Thanks in advance

  2. #2
    Sencha User
    Join Date
    Sep 2008
    Posts
    81

    Default

    Strange behaviour. I don't know how or why it happened. I was using Ext 3.2, just upgraded to 3.3.1 and problem seemed to be gone... In case it helps someone...

Similar Threads

  1. Replies: 4
    Last Post: 15 Nov 2011, 8:30 AM
  2. Numberfield not working in safari 5.0.3.
    By tomalex0 in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 12 Jan 2011, 10:30 PM
  3. treepanel working in Firefox/Safari and not working in IE
    By pieterk in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 8 Apr 2009, 12:13 PM
  4. [2.2] panel, setVisible true not working
    By maceido in forum Ext 2.x: Bugs
    Replies: 10
    Last Post: 14 Oct 2008, 11:40 PM
  5. [CLOSED] TabItem.setVisible(false) not working
    By PeteW in forum Ext GWT: Bugs (1.x)
    Replies: 5
    Last Post: 8 May 2008, 4:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •