vue-multipane icon indicating copy to clipboard operation
vue-multipane copied to clipboard

Panes overlap when window smaller than min-width

Open jbonnett92 opened this issue 6 years ago • 7 comments

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 avatar Dec 17 '17 07:12 jbonnett92

@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?

liquidvisual avatar Mar 08 '18 15:03 liquidvisual

@liquidvisual Unfortunately I haven't.

jbonnett92 avatar Mar 08 '18 17:03 jbonnett92

@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>

liquidvisual avatar Mar 08 '18 21:03 liquidvisual

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

jbonnett92 avatar Mar 08 '18 21:03 jbonnett92

@liquidvisual My panes just seem to overlap.

jbonnett92 avatar Mar 10 '18 01:03 jbonnett92

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 :/

liquidvisual avatar Mar 10 '18 14:03 liquidvisual

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

jbonnett92 avatar Aug 28 '18 15:08 jbonnett92