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

Panes overlap when window smaller than min-width #2

Open
jbonnett92 opened this issue Dec 17, 2017 · 7 comments
Open

Panes overlap when window smaller than min-width #2

jbonnett92 opened this issue Dec 17, 2017 · 7 comments

Comments

@jbonnett92
Copy link

jbonnett92 commented Dec 17, 2017

Hi,
The panes overlap when the window is resized smaller than the min-width.
Imgur

Any way you can update the code to prevent this?

UPDATE:
It turns out it's to do with the rightmost panel having content that is larger than the one to the left.
Imgur
Sorry about the quality. I still have no fix.

Thank you,
Jamie

@jbonnett92 jbonnett92 changed the title Panes padding ignored when Panes padding ignored Dec 17, 2017
@jbonnett92 jbonnett92 changed the title Panes padding ignored Panes overlap when window smaller than min-width Dec 17, 2017
@liquidvisual
Copy link

@jbonnett92 I've run into a similar issue where a pane will not respect overflow: auto - so instead of invoking scrollbars when the pane gets too small for the content, it just "snaps" back.

Did you manage to find a solution or an alternate library for your purpose?

@jbonnett92
Copy link
Author

@liquidvisual Unfortunately I haven't.

@liquidvisual
Copy link

@jbonnett92 I just discovered a fix (for my situation) - I was able to invoke scrollbars by making the panel content wrapper absolute. Hope this can be of use to you somehow:

<!-- MULTIPANE -->
<multipane class="multipane w-100 h-100" layout="vertical">
    <div class="pane" :style="{ minWidth: '200px', width: '200px' }">
        ...
    </div>
    <multipane-resizer></multipane-resizer>
    <div class="pane" :style="{ flexGrow: 1 }">
        <div style="position: absolute;">
            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
            tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
            quis nostrud exercitation.</p>
        </div>
    </div>
</multipane>

@jbonnett92
Copy link
Author

@liquidvisual Thank you I'll give it a try in a little bit :) I'll let you know if it works.

@jbonnett92
Copy link
Author

@liquidvisual My panes just seem to overlap.

@liquidvisual
Copy link

liquidvisual commented Mar 10, 2018

Sorry to hear that. What happens if your panes have an overflow of auto?

Originally I was looking into this library since it was based on what looks to be the most popular JS one, "Split.js" - although I wasn't able to figure out how to implement it in Vue based on the examples :/

@jbonnett92
Copy link
Author

I think it has to do with the rightmost pane being flexbox.

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

2 participants