PDA

View Full Version : Element opacity lost when switching among tabs



dario
9 Oct 2007, 8:50 AM
Hi all

In my app I'm using a borderlayout with 2 tabs on the west panel. In those tabs I put some div element with different opacity by using applyStyles:

Ext.get('element1').applyStyles("opacity:0.6");
Ext.get('element1').applyStyles("-moz-opacity: 0.6");
Ext.get('element1').applyStyles("filter: alpha(opacity:60)");

This works but when I switch between the 2 tabs all the elements are shown with opacity set to 1. I know I can use some event handler to detect the tab switching and set the right opacity again but I was wondering if there's a more elegant solution.
Thanks in advance
Dario