Tristan Dahl (jazz_samurai) wrote in component_help,
Tristan Dahl
jazz_samurai
component_help

funky stuff (comp_footer)

Hey, I need some help.

For some reason, my right-side components are messed up. The bodies extend 1 or 2 columns past the header.

Here is my comp_header function:


function print_comp_header(string content) {
  var string style = ($*comp_state == "right") ? " style='margin-right:3px;'" : "";
  """
  <tr$style>
    <td class="dkLine" colspan="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="tabBg"  colspan="1" width="100%"><font class="sideHeader" style="position:relative; left:4px;" width="100%">$content</font></td>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="3"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
  </tr>
  <tr>
    <td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
    <td class="compBg" colspan="1" width="100%"><div class="compFont">
  """;
}


Now, I can see that the table is 3 columns, and it leaves the "substance" to be printed in the 2nd of 3 on a row. However, I don't have it overriding comp_footer, so I have no way to specify the number of remaining columns. The only reason I haven't overridden it is because I'm not sure what exists, as in would I be leaving some crucial code out.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 4 comments