@@ -168,7 +168,7 @@ javaxt.dhtml.TabPanel = function(parent, config) {
168
168
t . style . position = "relative" ;
169
169
t . style . float = "left" ;
170
170
t . style . height = "100%" ;
171
- t . el . style . display = 'none' ;
171
+ hideTabContent ( t ) ;
172
172
}
173
173
}
174
174
@@ -251,7 +251,7 @@ javaxt.dhtml.TabPanel = function(parent, config) {
251
251
252
252
//Display tab content
253
253
tab . el . style . display = 'block' ;
254
-
254
+ tab . el . style . zIndex = 1 ; //this was added so groupboxes in forms would render correctly
255
255
256
256
//Call onTabChange
257
257
me . onTabChange ( getTabInfo ( tab ) , getTabInfo ( currTab ) ) ;
@@ -332,8 +332,7 @@ javaxt.dhtml.TabPanel = function(parent, config) {
332
332
333
333
setInactive ( tab ) ;
334
334
tab . style . display = 'none' ;
335
- tab . el . style . display = 'none' ;
336
-
335
+ hideTabContent ( tab ) ;
337
336
338
337
if ( nextTab ) raiseTab ( nextTab ) ;
339
338
}
@@ -385,10 +384,19 @@ javaxt.dhtml.TabPanel = function(parent, config) {
385
384
tab . style . position = "relative" ;
386
385
tab . style . float = "left" ;
387
386
tab . style . height = "100%" ;
388
- tab . el . style . display = 'none' ;
387
+ hideTabContent ( tab ) ;
389
388
} ;
390
389
391
390
391
+ //**************************************************************************
392
+ //** hideTabContent
393
+ //**************************************************************************
394
+ /** Used to hide the element/panel associated with a tab
395
+ */
396
+ var hideTabContent = function ( tab ) {
397
+ tab . el . style . display = 'none' ;
398
+ tab . el . style . zIndex = '' ;
399
+ } ;
392
400
393
401
394
402
//**************************************************************************
0 commit comments