[Dojo-interest] Tab Widget bug!!

Thomas Wolf tw at wsf.at
Tue Feb 13 04:47:16 MST 2007


Andrew Scott wrote:
> Ok, after tearing my hair out for a little while I came across this problem.
> I have cut and pasted the below code so there are some things missing but
> there is enough here to duplicate the problem.
> 
> The problem is that I have the Tabs in a div that is hidden, and when it is
> set to block to show the div the tabs are being set with a width of 0px? I
> have tried to look at the code to fix it but don't have the time to really
> go into the problem with the tabs.

On the "TabContainer"-widget:

a) set doLayout="false" (size of the Container will adjust to the
   size of the active Tab)
or
b) add style width/height properties

in case of b) the code for showing the hidden div should be:
dojo.byId("AddPassengers").style.display="block";
dojo.widget.getWidgetById("AddPassenger").onResized();

What version of dojo do you have? I'm running dojo 0.4.1 and
there is no dojoType="ModalWindow" ...

HTH
Thomas

> 
> Can the author of this widget get back to me asap to see how I can get
> around or fix this problem please.
> 
> 
> 
> <div widgetId="Passengers" dojoType=" ModalWindow" title="This is the Title
> text" resizable="true" hasShadow="true" bgOpacity="0.03" width="565"
> height="400">
> 	<div id="AddPassengers" style="display: none;">
> 		<div id="AddPassenger" dojoType="TabContainer"
> selectedChild="MainDetails">
> 			<div id="MainDetails" dojoType="ContentPane"
> label="Flights"></div>
> 			<div id="MoreInfo" dojoType="ContentPane"
> label="Accom"></div>
> 		</div>
> 	</div>
> 	<div id="SearchPassenger">
> 		<div>
> 			<table	class="FilterTable"
> 	
> dojoType="filteringTable" 
> 	
> widgetId="SearchTable" 
> 							multiple="false" 
> 							alternateRows="true"
> 	
> rowAlternateClass="alternateRow"
> 							maxSortable="1"
> 							cellpadding="0"
> 							cellspacing="0"
> 	
> onSelect="AndrewTest('FlightsTable');">
> 				<thead>
> 					<tr>
> 						<th field="id"
> dataType="Number" valign="top">Id</th>
> 						<th field="airline"
> dataType="String" valign="top">Customer Name</th>
> 						<th field="route"
> dataType="String" valign="top">Address</th>
> 						<th field="fairbasis"
> dataType="String" valign="top">Date Entered</th>
> 					</tr>
> 				</thead>
> 				<tbody>
> 				</tbody>
> 		</div>
> 	</div>
> </div>
> 
> Andrew Scott
> Senior Coldfusion Developer
> Aegeon Pty. Ltd.
> www.aegeon.com.au
> Phone: +613  8676 4223
> Mobile: 0404 998 273	
> 
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest



More information about the Dojo-interest mailing list