Topic: BBCode Code tag causes text to get scrollbars - can i remove them

I have discovered a feature, that i'd like to change, if possible.
When using the bbcode "code"-tags, the text area is limited to a certain number of lines before it gets "overflowed" and you get a vertical scrollbar. I guess this is so that the vertical height of the post won't be redicilously long if you post the source code to Quake or anything.
Is it possible to change this value? I need to post some code-things on a forum, while keeping an overview of the whole post.

peace

Re: BBCode Code tag causes text to get scrollbars - can i remove them

I think this is it:

In style/imports/base.css line 190:

DIV.scrollbox {WIDTH: 100%; OVERFLOW: auto}

Change it into:

DIV.scrollbox {WIDTH: 100%;}

3

Re: BBCode Code tag causes text to get scrollbars - can i remove them

If you just want to get rid of the vertical scrollbar and not the horizontal scrollbar you will have to edit parser.php. Unfortunately, this is the one bit of styling which is hardcoded.

Go to line 430 of parser.php and look for this

<div class="scrollbox" style="height: '.$height_str.'">

Change it to this

<div class="scrollbox">

Tragically, this horror is necessary for IE6 (and lower). Otherwise we could use scrollbox {max-height: xxem) in the stylesheet and also remove a bunch of code. Now that you've raised this, I feel an experiment coming on.