Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using material box for card images #2091

Closed
alisabzevari opened this issue Sep 27, 2015 · 5 comments
Closed

using material box for card images #2091

alisabzevari opened this issue Sep 27, 2015 · 5 comments

Comments

@alisabzevari
Copy link

I am trying to use material box for card images. My target is to click on card image and view it fullscreen.

<div class="card large hoverable">
    <div class="card-image">
      <img materialize="" class="materialboxed" width="650" src.bind="movie.poster">
    </div>
    <div class="card-content">
      <span class="card-title activator grey-text text-darken-4">${movie.title + " - " + movie.imdbRating}<i class="material-icons right">more_vert</i></span>
      <p>${movie.genre.join(', ')}</p>
    </div>
    <div class="card-reveal">
      <span class="card-title grey-text text-darken-4">${movie.title}<i class="material-icons right">close</i></span>
      <p>${movie.director}</p>
      <p>${movie.genre.join(', ')}</p>
      <p>${movie.actors.join(', ')}</p>
      <p>${movie.plot}</p>
    </div>
  </div>

The problem is that it could not make the image container bigger. So the image will be zoomed but because the container is small it couldn't show all of the image.

@emileae
Copy link

emileae commented Sep 27, 2015

I'm getting the same issue and I'm reluctant to modify materialbox.js

@acburst
Copy link
Collaborator

acburst commented Sep 27, 2015

Fixed in 37c9d79

If you don't want to remove overflow: hidden yourself, materialbox will now look for ancestors with overflow hidden and remove that attribute and then reset them to their original overflow when you exit out of the materialbox.

@acburst acburst closed this as completed Sep 27, 2015
@emileae
Copy link

emileae commented Sep 27, 2015

Wow, thanks for the super fast response, your latest commit has fixed my issue.

@alisabzevari
Copy link
Author

Works like a charm. Thanks!

@z4ki
Copy link

z4ki commented May 17, 2017

is there an example how to remove hidden overlow because i didn't get it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants