PDA

View Full Version : [OPEN-1477] Chrome Ext.Msg.show wrong placing



Mycoding
4 Jan 2011, 5:08 AM
The bug is only in Chrome and I don't undestand what is the reason of bug.
The bug is:'We click on reference "???????? ?? ?????"' than Ext.Msg.show can be shown normal(in right place),
but can place in corner of browser. Bug sometimes appears and somtetimes not appear.
Here is the code of setting handler for link.
And screenshot of bug.



function payMouseDown(event){
if(!Ext.util.Cookies.get('user')){
Ext.Msg.show({
animEl: 'payForMonth',
iconCls:'icon-key',
title:'?????????? ?????.',
msg:'??????????, ????????? ????.'
});
}
if(!!Ext.util.Cookies.get('user')){
var MainPanel = Ext.getCmp('doc-body');
var p = MainPanel.add(new DocPanel({
id: 'pay-id',
cclass : '??????',
autoLoad: '/pay/qiwi/qiwi-form.html',
iconCls: 'icon-money'
}));
MainPanel.setActiveTab(p);
}
}

function setHandlers(){
Ext.fly('abackConnection').on('mousedown' , abackConnectionMouseDown);
Ext.fly('payForMonth').on('mousedown' , payMouseDown);
}


http://vreshenie.ru/bug.png

Condor
5 Jan 2011, 5:02 AM
Are you using an Ext.state.Manager?

It could be that the state cookie contains information for the window id.

What happens if you configure the window with stateful:false?

Mycoding
5 Jan 2011, 5:20 AM
It seems to me I don't use Ext.state.Manager.
I even don't use it any time.
But I use ExtJs cookie setter and reader.
That is now window that is Ext.Msg.show, but I will try with stateful.
Thanks Condor for many times of help.

Condor
5 Jan 2011, 5:31 AM
No, sorry, that can't be it. Ext.MessageBox already creates the window with stateful:false (correct).

What is the exact Ext and Chome versions you are using?

ps. Any specific reason that you are using 'mousedown' instead of 'click'?

Mycoding
5 Jan 2011, 5:42 AM
Ext JS version: 3.3.1
Chrome:8.0.552.224
I use mousedown' instead of 'click' just so, I think that is the same or I am wrong?
The ite is here : http://vreshenie.ru/

Condor
5 Jan 2011, 6:28 AM
Any specific actions you are taking? I tried several things on the site, but the messagebox always displayed center.

Mycoding
5 Jan 2011, 6:36 AM
No I don't do something special.
I just click on different link(only two works at the moment).
Just 1 hour ago I tried so, wait about 1.5 minites then press only the bug link and message appear in wrong place,
than i refresh page and do the same none bug appear.
That only in Chrome, maybe that is not ExtJS bug but chrome's bug?

Condor
5 Jan 2011, 6:53 AM
No, tried waiting, but it still shows correctly.

I need a way to reproduce the problem, otherwise I won't be able to do anything...

Mycoding
5 Jan 2011, 6:57 AM
I will try write video.
Wait for a time please.

Mycoding
5 Jan 2011, 7:38 AM
Here is video
http://www.screencast.com/users/mycoding/folders/Jing/media/f51f9df1-1be5-4e7a-bd73-99c3234d6bbb