TinyPortal

Development => Support => Topic started by: Techdomain on June 06, 2008, 02:12:03 PM

Title: Typo in 1.0.5 beta code?
Post by: Techdomain on June 06, 2008, 02:12:03 PM
Maybe a typo... code has "ex" at the end of line 115 in TPBlockLayout.template.php. maybe I am a nut  :idiot2:

Quote
   // TinyPortal integrated bars
   if($context['TPortal']['leftpanel']==1)
   {
      echo '
         <td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 4px;padding-right: 1ex;" valign="top">
            <div id="tpleftbarHeader" style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;', (!empty($options['tpcollapse_leftbar']) && $context['TPortal']['showcollapse']==1) ? ' display: none;' : '' , '">
               ' , TPortal_panel('left') , '      
            </div>
         </td>';

   }
Title: Re: Typo in 1.0.5 beta code?
Post by: IchBin on June 06, 2008, 02:31:38 PM
ex is actually a measurement that can be used. I don't know if Bloc meant to have it there, or if he meant to use px, but I think ex is a measurement for characters.
Title: Re: Typo in 1.0.5 beta code?
Post by: bloc on June 06, 2008, 07:29:39 PM
Its meant to be ex. I like to use em for the same now though..but ex stands for the width of the x charachter.
Title: Re: Typo in 1.0.5 beta code?
Post by: Techdomain on June 06, 2008, 09:48:54 PM
ah... well I am a nut then :P

At least I didnt change that bit then...