@@ -168,7 +168,7 @@ javaxt.dhtml.TabPanel = function(parent, config) {
168168 t . style . position = "relative" ;
169169 t . style . float = "left" ;
170170 t . style . height = "100%" ;
171- t . el . style . display = 'none' ;
171+ hideTabContent ( t ) ;
172172 }
173173 }
174174
@@ -251,7 +251,7 @@ javaxt.dhtml.TabPanel = function(parent, config) {
251251
252252 //Display tab content
253253 tab . el . style . display = 'block' ;
254-
254+ tab . el . style . zIndex = 1 ; //this was added so groupboxes in forms would render correctly
255255
256256 //Call onTabChange
257257 me . onTabChange ( getTabInfo ( tab ) , getTabInfo ( currTab ) ) ;
@@ -332,8 +332,7 @@ javaxt.dhtml.TabPanel = function(parent, config) {
332332
333333 setInactive ( tab ) ;
334334 tab . style . display = 'none' ;
335- tab . el . style . display = 'none' ;
336-
335+ hideTabContent ( tab ) ;
337336
338337 if ( nextTab ) raiseTab ( nextTab ) ;
339338 }
@@ -385,10 +384,19 @@ javaxt.dhtml.TabPanel = function(parent, config) {
385384 tab . style . position = "relative" ;
386385 tab . style . float = "left" ;
387386 tab . style . height = "100%" ;
388- tab . el . style . display = 'none' ;
387+ hideTabContent ( tab ) ;
389388 } ;
390389
391390
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+ } ;
392400
393401
394402 //**************************************************************************
0 commit comments