Easy fix. Your tbopen template should look like this
<? //UBBTREMARK
$tbopen = <<<UBBTPRINT
<table width="{$theme['tablewidth']}" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="tlc"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
<td class="top"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
<td class="trc"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
</tr>
<tr>
<td class="left"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
<td width="100%">
<table width="{$theme['tablewidth']}" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="{$theme['cellpadding']}" cellspacing="{$theme['cellspacing']}" width="100%" class="tableborders">
UBBTPRINT;
/* UBBTREMARK */ ?>
Just change it to this
<? //UBBTREMARK
$tbopen = <<<UBBTPRINT
<table width="{$theme['tablewidth']}" align="center" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="tlc"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
<td class="top"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
<td class="trc"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
</tr>
<tr>
<td class="left"><img border="0" src="spacer.gif" width="10" height="10" alt="" /></td>
<td width="100%">
<table width="100%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="{$theme['cellpadding']}" cellspacing="{$theme['cellspacing']}" width="100%" class="tableborders">
UBBTPRINT;
/* UBBTREMARK */ ?>
The second to last table needs to be set to 100% and it will autosize just fine.