mozbrick / brick-deck

A Brick box element in which cards can be cycled independently of order with a variety of different transitions.
Apache License 2.0
2 stars 4 forks source link

Deck has 0 height after clean load #19

Open zalun opened 10 years ago

zalun commented 10 years ago

After adding

    <script src="app/bower_components/brick/dist/platform/platform.js"></script>
    <link rel="import" href="app/bower_components/brick-deck/dist/brick-deck.html">

...

    <brick-deck selected-index="0">
      <brick-card selected>
        <h1>Tosia</h1>
      </brick-card>
      <brick-card>
        <h1>Magda</h1>
      </brick-card>
    </brick-deck>

The page is displayed with 0 height.

I needed to change the height of the body element to make the deck visible. I think it would be good to add this info in the docs.

sole commented 10 years ago

body and html to height: 100%!!