Code blocks

Discussion in 'Feedback & Suggestions' started by jezmck, 22 Nov 2008.

  1. jezmck

    jezmck Minimodder

    Joined:
    25 Sep 2003
    Posts:
    4,456
    Likes Received:
    36
    Code:
    Why is that there's so much space (padding-bottom?) in code blocks?
     
  2. Tim S

    Tim S OG

    Joined:
    8 Nov 2001
    Posts:
    18,881
    Likes Received:
    78
    Code:
    not sure, Jamie may know though...
     
  3. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Code:
    because vbulletin is ****
     
  4. Tim S

    Tim S OG

    Joined:
    8 Nov 2001
    Posts:
    18,881
    Likes Received:
    78
    Code:
    that's a fairly good response, Rich.
     
  5. Aterius Gmork

    Aterius Gmork smell the ashes

    Joined:
    25 Sep 2007
    Posts:
    1,823
    Likes Received:
    73
    Code:
    Awesome, staff bashing their own software.
     
  6. steveo_mcg

    steveo_mcg What's a Dremel?

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    Code:
    its not like they wrote it
     
    Last edited: 22 Nov 2008
  7. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    Code:
    Nah, RTT caused most of the issues tho :P
     
  8. Jamie

    Jamie ex-Bit-Tech code junkie

    Joined:
    12 Mar 2001
    Posts:
    8,180
    Likes Received:
    54
    PHP:
    echo "Gash";
     
  9. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    PHP:
    Stop pissing about
     
  10. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    PHP:
    No u
     
  11. Tim S

    Tim S OG

    Joined:
    8 Nov 2001
    Posts:
    18,881
    Likes Received:
    78
    Code:
    amirite?
     
  12. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Code:
    I bum men
     
  13. jezmck

    jezmck Minimodder

    Joined:
    25 Sep 2003
    Posts:
    4,456
    Likes Received:
    36
    PHP:
    $feedback_avoided true;
     
  14. DougEdey

    DougEdey I pwn all your storage

    Joined:
    5 Jul 2005
    Posts:
    13,933
    Likes Received:
    33
    Code:
    You guys are such nerds
     
  15. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    In all seriousness, the 'padding' observed at the bottom of a code block is set by the height: css property, rather than a padding property. There's an option in vbulletin to specify how much code is shown before it adds a scroll bar (via overflow: scroll) into the code box, so it has to add a height value for the <pre> tag. For whatever reason, vb thinks that one line of text requires 34px worth of height.
     
    Last edited: 23 Nov 2008
  16. Ending Credits

    Ending Credits Bunned

    Joined:
    4 Jan 2008
    Posts:
    5,321
    Likes Received:
    244
    Code:
    [quote][code]In all seriousness, the 'padding' observed at the bottom of a code block is set by the height: css property, rather than a padding property. There's an option in vbulletin to specify how much code is shown before it adds a scroll bar (via overflow: scroll) into the code box, so it has to add a height value for the <pre> tag. For whatever reason, vb thinks that one line of text requires 34px worth of height.
    [/quote]

    Fixed[/code]
     
  17. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    Code:
    [quote="Ending Credits, post: 1868968"][code]
    
    Fixed
    [/QUOTE][/code]

    As i said. vB = steaming pile of shite :thumb:
     
  18. cpemma

    cpemma Ecky thump

    Joined:
    27 Nov 2001
    Posts:
    12,328
    Likes Received:
    55
    But it's our shite. :D
     

Share This Page