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

Question: modal height when using more than one div and JS #201

Open
duenni opened this issue Nov 17, 2015 · 0 comments
Open

Question: modal height when using more than one div and JS #201

duenni opened this issue Nov 17, 2015 · 0 comments

Comments

@duenni
Copy link

duenni commented Nov 17, 2015

Hi there,

thanks for this nice project!
I'm using css-modals together with canvasjs and with more than one div. Code looks like this:

    <section class="modal--show" id="modal-text" tabindex="-1" role="dialog" aria-labelledby="modal-label" aria-hidden="true">
        <div class="modal-inner">
            <header id="modal-label"><!-- Header -->My label</header>
            <div class="modal-content"><!-- The modals content -->
                <div id="chartContainer" style="height: 300px; width: 100%;"></div>
                <div id="stats"></div>
            </div>
        </div>
        <a href="#!" class="modal-close" title="Close this modal" data-close="Close" data-dismiss="modal">?</a>
    </section>

The <div>'s get their data from some JavaScript functions. Everything is fine except the height of the modal. It has scrollbars and won't adapt to the height of the generated content. How can I get the modal to fit to the content?
Thanks in advance!

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