Collapsable quote stuk met code block

Pagina: 1
Acties:

  • BM
  • Registratie: September 2001
  • Laatst online: 08:17

BM

Moderator Spielerij
Topicstarter
Hi :)

.oisyn in "[alg] Slechtste programmeervoorbeelden deel 5"
.oisyn schreef op dinsdag 16 februari 2016 @ 10:10:
In C++ maak je op die manier ook slicing copies :)

C++:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <iostream>

struct Foo { virtual const char * msg() { return "Luke without hand"; } };
struct Bar : Foo { virtual const char * msg() { return "Luke with hand"; } };

int main()
{
    try
    {
        try
        {
            throw Bar();
        }
        catch(Foo & f)
        {
            std::cout << f.msg() << std::endl;
            throw f;
        }
    }
    catch(Foo & f)
    {
        std::cout << f.msg() << std::endl;
    }
}
De quote word welliswaar afgekapt, maar helemaal goed gaat dat niet :) Geen linkje om uit te klappen en de code loopt uit de quote.

Getest met IE11 en Fx43.0.4 op W7

Xbox
Even the dark has a silver lining | I'm all you can imagine times infinity, times three


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 21:38

.oisyn

Moderator Devschuur®

Demotivational Speaker

Ook in Safari op iOS9

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


  • Migrator
  • Registratie: Januari 2014
  • Niet online

Migrator

☄️☄️☄️ voorheen Evest

Volgens mij in elke browser. Uitklappen kan trouwens wel links en rechts waar het codeblock niet zit.

If you choose not to decide, you still have made a choice.


  • GerardVanAfoort
  • Registratie: April 2010
  • Niet online

GerardVanAfoort

kalm aan

Kwam dit net ook tegen. Echter in het iOS 9 topic zie je duidelijk 'toon volledige bericht' maar ook in het Custom CSS topic geen functie knop.

Edit: Verschil tussen tekst quote's en code quote's blijkbaar.

[ Voor 18% gewijzigd door GerardVanAfoort op 16-02-2016 17:46 ]

NRG


  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

Waarschijnlijk een layering issue. Gaan we naar kijken :)

Intentionally left blank


  • BM
  • Registratie: September 2001
  • Laatst online: 08:17

BM

Moderator Spielerij
Topicstarter
Lijkt ondertussen overigens opgelost te zijn :)

Xbox
Even the dark has a silver lining | I'm all you can imagine times infinity, times three


  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

Dat klopt inderdaad :)

Intentionally left blank


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 21:38

.oisyn

Moderator Devschuur®

Demotivational Speaker

Kan het ook uitgezet worden?

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


  • .oisyn
  • Registratie: September 2000
  • Laatst online: 21:38

.oisyn

Moderator Devschuur®

Demotivational Speaker

Raven deelde me het volgende via DM :)
Cascading Stylesheet:
1
2
3
4
5
6
7
8
/* toggle-quote verwijderen */
.messagecontent .toggle-quote{ display:none; }

.messagecontent .message-quote-div.large-quote {
    height: initial;
    overflow: visible;
    padding-bottom: 10px;
}

Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.


  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

die had ik gisteren ook al gepost: crisp in "[quote] Selectie i.p.v gehele bericht" ;)

Intentionally left blank

Pagina: 1