1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Browser Issue [code] bbCode Tag issue

Discussion in 'Resolved Bug Reports' started by lightbox, Feb 5, 2011.

  1. lightbox

    lightbox Active Member

    There's an issue with the code bbCode tag in Internet Explorer 8, if you post a very long line of code (see below, lots of blank space in the box, below the code). Doesn't happen with Firefox, doesn't happen with quote tag.

    Code:
    one short line of code
    
    Code:
    One very very very very very very very very very very very very very very very very very very very very very very very very very very very very long line of code
    ... longer than the width of the code content box.
    
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    For those not using IE, this is how it appears.

    ie8.PNG
     
  3. Mike

    Mike XenForo Developer Staff Member

    Very convenient IE... ;)
     
  4. EQnoble

    EQnoble Well-Known Member

    That is comic
     
  5. Vincent

    Vincent Well-Known Member

    Can't you create something like this?
    antiie.png
     
    Grover, krstep and EQnoble like this.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    No but you can use this:
    <!--[if !IE]><!-->
    <!--<![endif]-->

    ;)
     
    EQnoble likes this.
  7. Vincent

    Vincent Well-Known Member

    Hehe, I'd like that :)
     
    EQnoble likes this.
  8. RickM

    RickM Well-Known Member

    Facing this issue in RC2 - was there ever a resolution to this problem? Obviously removing the max-height: 500px; CSS works, but it would obviously mean the page would get longer and longer should a large piece of code be posted.
     
  9. lightbox

    lightbox Active Member

    Just one extra bit of information:
    In IE8 with "compatibility mode" OFF, the problem occcurs.
    With "compatibility mode" ON the problem is gone.
    I wonder how this behaves in IE9 (haven't installed the IE9 Release Candidate).
     
  10. Mike

    Mike XenForo Developer Staff Member

    This is an IE8 bug: http://edskes.net/ie/ie8overflowandexpandingboxbugs.htm (bottom bug there). There seem to be some implications that it's fixed in IE9.

    A possible workaround is to add this to the "BB Code Pre / Code" extra css:
    Code:
    max-height: none\9
    However, this means that if someone pastes in hundreds of lines of code, you're not going to get a limited height. To me, I'd rather have the limited height (otherwise it's a nightmare to scroll horizontally), which is when this comes up.
     

Share This Page