 |
 |
 |
 |
Registered: 04/12/04
Posts: 154
|
|
|
 |
 |
 |
 |
|
 |
 |
 |
 |
#181772 - 03/30/07 12:46 PM
CODE block height
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
Since 7.1 (I assume), my CODE blocks are being limited to only 150px in height, and I cannot find where that's determined/set. Pre-7.1 rendered as:
<div class="ubbcode-block">
<div class="ubbcode-header">Code:</div>
<div class="ubbcode-body ubbcode-pre">
<pre></pre></div></div>
But now it's rendering as:
<div class="ubbcode-block">
<div class="ubbcode-header"> Code:</div>
<div class="ubbcode-body ubbcode-pre" style="height: 150px;">
<pre></pre></div></div>
Where's that "height: 150px" coming from now, I can't find it?  ubbcode-body is set at 300px in my styles, and that is how high my QUOTE boxes are, and I'd like my CODE boxes to follow the same behavior... Thanks 
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
|
Express Hosting
"We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#181784 - 03/30/07 08:34 PM
Re: CODE block height
[Re: Gizmo]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
Okay, thanks. Well, I thought I found it.... In libs/ubbthreads.inc.php, on or around Line 1120
// Fix Code & PHP Tags
foreach( $codes['code'] as $i => $code ) {
...
$height = (substr_count($code,"\n") * 16) + 16;
if ($height > 150) $height = 150;
if ($height < 34) $height = 34;
...
However, I changed the one line to this, and it didn't seem to work if ($height > 300) $height = 300; Then I found this, near Line 1163
$height = (substr_count($code,"\n") * 16) + 20;
if ($height > 150) $height = 150;
if ($height < 34) $height = 34;
and changed that, too, but still nothing... 
Edited by jgeoff (03/30/07 08:44 PM) Edit Reason: However... ;)
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#181786 - 03/30/07 08:47 PM
Re: CODE block height
[Re: jgeoff]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
Testing some CODE I use on my site to test behavior here... this now causes a vertical scrollbar when before 7.1 it didn't... [SEG 2] WEEK 2 - WGC-CA Championship
JL Mickelson Woods Wall Calcavecchia
JG Mickelson Woods Wall Calcavecchia
IC Quigley Goydos Bryant -----------
SC Poulter Woods Durant Calcavecchia
RND1 RND2 RND3 RND4 TOT PTS TOT
JL^ -07 -09 -10 -11 -37 91 139
JG^ -07 -09 -10 -11 -37 91 139
IC -08 -07 -05 -04 -24 12 105
SC -06 -11 -07 -07 -31 45 65
(Fantasy golf  )
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#181796 - 03/31/07 12:53 AM
Re: CODE block height
[Re: Rick]
|
Pooh-Bah
|
Registered: 08/08/06
Posts: 1922
Loc: NJ
|
|
It should just be a matter of changing the two places that you noted in libs/ubbthreads.inc.php. You may also need to change your old stylesheet for the ubbcode properties as that had a max-height value set in it as well. .ubbcode-body max-height: 300px; Everything mentioned above says 300px height... the only thing left to try is ubbcode-pre -- where is that at? (Not for nothin', but maybe this should be a CP setting if it's this complicated  )
_________________________
GangsterBB.NET (Ver. 7.5.6) 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
|
|
Top
|
|
|
|
|
 |
 |
 |
 |
|
|