PDA

View Full Version : [CLOSED][3.1] GroupTab UI incorrect behavior (All browsers)



olivierpons
30 Jan 2010, 2:10 AM
Hi!

Steps to reproduce:
- open the example (official site):
http://www.extjs.com/deploy/dev/examples/grouptabs/grouptabs.html

- Click on the menu "email templates"
- Click on the menu "users"
- Click on the menu "email templates"

It doesn't work.
You have to click on an item of the GroupTap that has not been clicked before (i.e. you have to click on "Configuration" to have "email templates" work again).

You can reproduce it on Firefox 3.6 and Chrome 3.0.195.38 and Chrome 4.0.249.78

Another way of saying it:
- Click on the menu "email templates". From now on the button "email templates" doesn't work as long as you don't click on one item of its group.
- Click on the menu "users". From now on the button "users" doesn't work as long as you don't click on one item of its group.
And so on.

olivierpons
30 Jan 2010, 3:13 AM
Here's the workaround:

Edit GroupTab.js,
Go line 74 (function setActiveTab) and change this:

if(this.activeTab != item && this.fireEvent('beforetabchange', this, item, this.activeTab) !== false){
to

if(this.fireEvent('beforetabchange', this, item, this.activeTab) !== false){

mystix
30 Jan 2010, 5:45 AM
i believe this has already been fixed in 3.1.1-beta:
http://www.extjs.com/forum/showthread.php?t=87991

olivierpons
31 Jan 2010, 12:33 AM
You're right, but the solution is different than mine.
I don't know which one is the best conceptually talking...
Any help would be appreciated!

evant
31 Jan 2010, 12:38 AM
The fix will be out shortly, so I'm closing this thread.