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

probleme image size #1

Open
aplantard opened this issue Aug 24, 2018 · 0 comments
Open

probleme image size #1

aplantard opened this issue Aug 24, 2018 · 0 comments

Comments

@aplantard
Copy link

Hello,

Im trying to use masonry on my sharepoint framework webpart but my items are stacking on top of each other with a small margin.

image

my code is like that :

``const modals = React.createElement('div',{id:"masonryModal"},modal);
        htmlString = htmlString.concat(`</div>`);
        this.domElement.innerHTML = htmlString;
        ReactDom.render(modals,document.getElementById('modals'),function(){
          let elem = document.querySelector('#masonryModal');
            this.masonry = new Masonry(elem,{
              itemSelector: `.${styles.container}`,
              columnWidth: `.${styles.container}`,
              percentPosition: true
            });

        });
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

1 participant