Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-7698 in 4.2.0.489.
  1. #1
    Sencha Premium Member
    Join Date
    May 2009
    Posts
    157
    Vote Rating
    9
    ZachG will become famous soon enough

      0  

    Default [4.1.3] Window focus thrashing after message box close

    [4.1.3] Window focus thrashing after message box close


    REQUIRED INFORMATION




    Ext version tested:
    • Ext 4.1.3.548 (240477695016a85fb9ed1098fd5f8e116327fcc3)

    Browser versions tested against:
    • Chrome
    Description:
    • A modal window is opened.
    • A button pressed on the window causes the MessageBox to open.
    • After a timeout, the message box is hidden, then another modal window is opened.
    • In 4.1.2, this works fine.
    • In 4.1.3, the windows flash on top of each other.

    Steps to reproduce the problem:
    • Listen on the me.focusTask.delay line of Ext.Component.prototype.focus method.
    • Run the code below.
    • Click on the "Open Inner Window" button.

    The result that was expected:
    • In 4.1.2, after the inner window opens it doesn't flash.

    The result that occurs instead:
    • In 4.1.3, the modal windows flash as they try to focus and blur each other.

    Test Case:


    Code:
    Ext.onReady(function()	{
    	var outerWindow;
    	
    	outerWindow = Ext.create("Ext.window.Window", {
    		width:500,
    		height:500,
    		modal:true,
    		layout:"fit",
    		items:[
    			{
    				xtype:"button",
    				text:"Open Inner Window",
    				handler:function()	{
    					Ext.MessageBox.wait("Loading...");
    					
    					setTimeout(function()	{
    						Ext.MessageBox.hide();
    				
    						var innerWindow;
    						
    						innerWindow = Ext.create("Ext.window.Window", {
    							width:400,
    							height:400,
    							modal:true,
    							layout:"fit",
    							items:[
    								{
    									xtype:"button",
    									text:"Open Inner Inner Window",
    									handler:function()	{
    debugger;
    									}
    								}
    							]
    						});
    						innerWindow.show();
    					}, 1000);
    				}
    			}
    		]
    	});
    	outerWindow.show();
    });





    HELPFUL INFORMATION



    Debugging already done:
    • By setting Ext.window.Window.prototype.focusOnToFront = false, they don't flash anymore.
    • I'm not sure what repercussions setting that flag will have, but it seems ok.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,801
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,501
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Can you repro this on the 4.2 beta?

    I cannot repro with latest code with your example.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi