Flicker when hiding and maximizing windows in Firefox

3 posts, 0 answers
  1. Raheel Ashraf
    Raheel Ashraf avatar
    13 posts
    Member since:
    Mar 2010

    Posted 23 Apr 2010 Link to this post

    This is the problem I am seeing, specifically with firefox - Working fine in IE8.

    Scenario:
    Basically I have bunch of windows (each window is displayed as maximized) and only one window is display at a time.
    We have some buttons at the top of the page, to open the corresponding window. For instance:

    Window1 , Window 2 , ...

    when Window1 is clicked, it display Window 1 and when window2 is clicked, it ....All  of this is handled in the client side javascript code...

    Code:
        

    // windowName is name of the window to be displayed
       function displayWindow (windowName)  {
       var manager = GetRadWindowManager();
        
        var currentActiveWindow = manager.getActiveWindow();
        var current =  manager.GetWindowByName(
    windowName
    );


        // allWindows is the array that contains all window names    
           
        for(counter =0; counter < allWindows.length;counter++)
        {
            if(allWindows[counter] != 
    windowName
    )

            {
                manager.GetWindowByName(allWindows[counter]).hide();    // << Problem occurs here
            }

        }
          
        
        current.show();
        current.maximize();


    Problem:

    The problem seems to occur on the line I have indicated in the code. So for example, if Window1 is currently being displayed and I switch to window2, when it tries to hide window1, I see a little flicker in firefox, where I see a glimpse of window2 at the bottom and then its shown as maximized..


  2. Raheel Ashraf
    Raheel Ashraf avatar
    13 posts
    Member since:
    Mar 2010

    Posted 28 Apr 2010 Link to this post

    anyone??
  3. Raheel Ashraf
    Raheel Ashraf avatar
    13 posts
    Member since:
    Mar 2010

    Posted 28 Apr 2010 Link to this post

    this solution worked for me..

    // windowName is name of the window to be displayed
       function displayWindow (windowName)  {
       var manager = GetRadWindowManager();
        
        var currentActiveWindow = manager.getActiveWindow();
        var current =  manager.GetWindowByName(
    windowName
    );


        current.moveTo(0,0);
        current.maximize()
        current.show();


        // allWindows is the array that contains all window names    
           
        for(counter =0; counter < allWindows.length;counter++)
        {
            if(allWindows[counter] != 
    windowName
    )

            {
                manager.GetWindowByName(allWindows[counter]).hide();    // << Problem occurs here
            }

        }
          
        

Back to Top