Shop OBEX P1 Docs P2 Docs Learn Events
How to make the [code] box problems go away. — Parallax Forums

How to make the [code] box problems go away.

Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
edited 2010-08-16 00:51 in General Discussion
The code window in the new forum is problematic for a couple reasons:

1. It has a fixed size, which inappropriately forces scrolling, and
2. It seems to insert blank lines randomly at the end, especially when the font is changed.

The HTML code that governs the code box is as follows (from one of my posts in the Prop forum):
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="alt2" dir="ltr" style="
		margin: 0px;
		padding: 6px;
		border: 1px inset;
		width: [b]750px[/b];
		height: [b]210px[/b];
		text-align: left;
		overflow: auto">
  BIGWIN        = $01           '40 x 13 regular window.
  CREDITS       = $02           'Vertically overscanned window with smooth scrolling.
  MARQUEE       = $03           'Single row at bottom with smooth scrolling.
  HILO          = $04           'Single rows top and bottom.
  HILO2         = $05           'Dual rows top and bottom.
  DATETIME      = $06           'Date and time in lower right-hand corner.
  HIDATTIM      = $07           'Same as DATETIME with message row along top.
  CROSS         = $08           'Single cross-shaped cursor in middle of 40 x 13 screen.
  BOX           = $09           'Single box-shaped cursor in middle of 40 x 13 screen.
  DOT           = $0A           'Single dot cursor in middle of 40 x 13 screen.
</pre>
</div>

Notice the "width" and "height" values. They're given in pixels. If the values for both of these sytle properties are changed to "auto", both of the above issues disappear completely.

Recommendation: Change the values for the width and height style properties to auto.

Thanks,
-Phil

Comments

  • Jim EwaldJim Ewald Posts: 733
    edited 2010-08-16 00:51
    The style in that division is hard coded with the exception of the width style, which is assigned through an administrative page setting. I'm not sure what is involved to make the recommended changes. I'll take a look after the dust settles on the migration issues.
Sign In or Register to comment.