TinyPortal

Development => Support => Topic started by: Crip on May 26, 2005, 07:00:32 AM

Title: Side bar sizing question
Post by: Crip on May 26, 2005, 07:00:32 AM
If this topic was already covered I appologize but I couldn't locate anything through search.

The problem I'm having is with hiding the side bar when viewing the forum. It collapses more than when you use the collapse button. This causes the forum to look shifted to one side. Any ideas?
Title: Re: Side bar sizing question
Post by: Bjørn on May 26, 2005, 03:55:14 PM
Which theme are you using? I know some of them have these problems...
Title: Re: Side bar sizing question
Post by: Crip on May 27, 2005, 01:36:45 AM
SMF Default with modified images and colors.

http://seven17.net/
Title: Re: Side bar sizing question
Post by: Bjørn on May 27, 2005, 08:48:35 AM
Ah..I see. Its because the "leftbar" <div> in index.template.php have some internal padding when its "on", but if not it just the regualr <td> that decides.

I don't know if you have modified anything there, but try to find this code:
        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';


And replace with this:
        echo '<td width="100%" align="left" valign="top" style="padding-left: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 10px; padding-bottom: 10px;" id="bodyarea">';


It just apply TP padding value to the forum , even when leftbar is not present. Let me know how it works.
Title: Re: Side bar sizing question
Post by: Crip on May 27, 2005, 09:36:54 PM
That fixes the shifted look when in the forum but now creates a bigger gap between the side and middle bar.

http://seven17.net/
Title: Re: Side bar sizing question
Post by: Bjørn on May 28, 2005, 12:35:30 AM
ah..just add a "padding-right: 0;" right after..like this:
        echo '<td width="100%" align="left" valign="top" style="padding-left: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; padding-top: 10px; padding-bottom: 10px; padding-right: 0;" id="bodyarea">';
Title: Re: Side bar sizing question
Post by: Crip on June 07, 2005, 08:57:05 PM
I added the code where you said and it didn't work. I added px to it thinking that would help but no good. :'(