Giter VIP home page Giter VIP logo

Comments (5)

tomkp avatar tomkp commented on May 31, 2024 4

I thought that it was probably better to have 'overflow:auto' as a style the user could choose to add to a Pane - instead of it forced onto every Pane.

Hopefully you can add the same effect back by just adding this to your css:

.Pane {
    overflow: auto;
}

Also you can optionally specify a classname on a SplitPane, and the two Pane's contained in any SplitPane automatically have the classes 'Pane1' & 'Pane2'.

So you can then add the overflow by adding some css like this:

.my-split-pane > .Pane {
overflow: auto;
}

If it is just the top or bottom Pane that needs it, then either

.my-split-pane > .Pane1 {
or this

.my-split-pane > .Pane2 {
should target the correct pane...

If you have any problems with this then let me know...

from react-split-pane.

tomkp avatar tomkp commented on May 31, 2024

Done - thanks for letting me know. 👍

from react-split-pane.

ekatebi avatar ekatebi commented on May 31, 2024

Just tested it. Works great!

Here's a question for you about another issue: the splitter line appears to
be coming out of its container. Any suggestions as how to fix it?

[image: Inline image 1]

Thanks,
Ed

On Mon, Mar 28, 2016 at 6:19 PM, tomkp [email protected] wrote:

Done - thanks for letting me know. [image: 👍]


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#52 (comment)

from react-split-pane.

tomkp avatar tomkp commented on May 31, 2024

Hi - sorry, I can''t see the image, so I'm not sure of the exact problem you're having. Can you put together a simple example of the code that is exhibiting this?

from react-split-pane.

machaj avatar machaj commented on May 31, 2024

Hi,
there are two other problems when Pane is without overflow: 'auto' and content of the Pane is too long

  1. SplitPane split="horizontal" has invisible Resizer until you hover it

  1. SplitPane with prop split="horizontal" does not work right. Content of top and bottom Pane can overlap each other.

You can easily try it by adding long text to SplitPane divs:

    <SplitPane split="vertical" minSize="50" defaultSize="100" className="primary">
        <div>"PASTE REALY LONG TEXT HERE"</div>
        <SplitPane split="horizontal">
            <div>"PASTE REALY LONG TEXT HERE"</div>
            <div>"PASTE REALY LONG TEXT HERE"</div>
        </SplitPane>
    </SplitPane>

Jan

from react-split-pane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.