rvera / image-picker

Image Picker is a simple jQuery plugin that transforms a select element into a more user friendly graphical interface.
http://rvera.github.com/image-picker
Other
906 stars 216 forks source link

Using Masonry with Image-picker #28

Closed LymanZerge closed 7 years ago

LymanZerge commented 10 years ago

Can you please give an example of using Masonry with Image-picker ? I tried putting the select in <div id="container"> but it doesn't seem to work. original question: http://stackoverflow.com/questions/22338582/use-fixed-image-size-in-jquery-image-picker-tool?noredirect=1#comment33990988_22338582

rvera commented 10 years ago

Hi, let me see if I can put something together. You can also take a look at the doc page since I use masonry for one of the examples in there.

mistermant commented 9 years ago

Please, would be great an example whit of using Masonry with Image-picker, it does non seem to work whith...Tanks

rvera commented 7 years ago

The demo page has an (old) example

    var container = jQuery("select.image-picker.masonry").next("ul.thumbnails");
    container.imagesLoaded(function(){
      container.masonry({
        itemSelector:   "li",
      });
    });

For more info I'd recommend checking out the official masonry docs.