Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Col - helmikuu 05, 2006, 02:36:52 IP

Otsikko: Code box bug
Kirjoitti: Col - helmikuu 05, 2006, 02:36:52 IP
The code box does not render correctly in IE, as reported here: http://www.simplemachines.org/community/index.php?topic=68398.msg476291#msg476291
Otsikko: Re: Code box bug
Kirjoitti: Col - helmikuu 18, 2006, 05:46:49 IP
I notice that this bug isn't fixed, and there has been no reply, so maybe it slipped through the net.

Although most people who use this forum will probably know how to get code out of such malformed code boxes, they won't at most forums. I'm sure the bug is very simple to rectify. I still use 1.0.6, otherwise I'd look at it myself.
Otsikko: Re: Code box bug
Kirjoitti: Thantos - helmikuu 18, 2006, 06:08:56 IP
It hasn't slipped through, just hasn't been fixed.
Otsikko: Re: Code box bug
Kirjoitti: Daniel Hofverberg - helmikuu 22, 2006, 07:34:31 AP
It is indeed very annoying not to be able to view some of the code posts.

As far as I can make out, the code boxes seem to be 1 line too short in IE (I e if the code posted is 5 lines, then the code box will be 4 lines high), so that you always need to scroll down to see the last line of the code. Which obviously means that code boxes that only consist of one line will be zero lines high and impossible to see anything in...
Otsikko: Re: Code box bug
Kirjoitti: Thantos - helmikuu 22, 2006, 09:11:45 AP
It only seems to affect this board as my test boards render it correctly.  I haven't been able to narrow down a cause though.
Otsikko: Re: Code box bug
Kirjoitti: nwsw - helmikuu 23, 2006, 04:35:06 IP
It might have something to do with the Javascript function smf_codeFix(), which does not seem to appear in the IE topic display on this site.
Otsikko: Re: Code box bug
Kirjoitti: Thantos - helmikuu 23, 2006, 10:30:38 IP
Thanks, I'll take a look at that.
Otsikko: Re: Code box bug
Kirjoitti: Thantos - helmikuu 23, 2006, 10:57:52 IP
That seemed to be it.  Thanks ntworthy.