question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not work (Can not resize)

See original GitHub issue

I use project created by create-react-app and replace src/index.js as follow:

import React from 'react';
import ReactDOM from 'react-dom';
import SplitPane from 'react-split-pane';

ReactDOM.render(
  <SplitPane split="vertical" minSize={50} defaultSize={100}>
    <div style={{background: 'red', height: window.innerHeight}}></div>
    <div></div>
   </SplitPane>, document.getElementById('root'));

And then npm start. I can see the panel but can not resize it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
dienluongcommented, Jun 26, 2018

I stumbled into this problem as well. After much debugging, I decided to add the styles and it worked.

I think the documentation should mention that you absolutely need to manually apply styles to the resizer – currently, it is not clear you must do this.

Thanks much.

2reactions
tomkpcommented, Nov 12, 2017

Hi - The resizer has no default styling - so you will need to import the styling for the resizer as well…

If you add the following to a css file and import it, then it should work…

Let me know if you have any problems.

.Resizer {
        background: #000;
        opacity: .2;
        z-index: 1;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -moz-background-clip: padding;
        -webkit-background-clip: padding;
        background-clip: padding-box;
    }

     .Resizer:hover {
        -webkit-transition: all 2s ease;
        transition: all 2s ease;
    }

     .Resizer.horizontal {
        height: 11px;
        margin: -5px 0;
        border-top: 5px solid rgba(255, 255, 255, 0);
        border-bottom: 5px solid rgba(255, 255, 255, 0);
        cursor: row-resize;
        width: 100%;
    }

    .Resizer.horizontal:hover {
        border-top: 5px solid rgba(0, 0, 0, 0.5);
        border-bottom: 5px solid rgba(0, 0, 0, 0.5);
    }

    .Resizer.vertical {
        width: 11px;
        margin: 0 -5px;
        border-left: 5px solid rgba(255, 255, 255, 0);
        border-right: 5px solid rgba(255, 255, 255, 0);
        cursor: col-resize;
    }

    .Resizer.vertical:hover {
        border-left: 5px solid rgba(0, 0, 0, 0.5);
        border-right: 5px solid rgba(0, 0, 0, 0.5);
    }
    .Resizer.disabled {
      cursor: not-allowed;
    }
    .Resizer.disabled:hover {
      border-color: transparent;
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Fixes When You Can't Resize Window in Windows 11 and 10
1. Try Keyboard Shortcuts to Resize a Window · 2. Turn Off Tablet Mode · 3. Uninstall TeamViewer · 4. Close All Apps...
Read more >
I Cannot resize window - Microsoft Community
I Cannot resize window. Something changed and if I browse windows changing a size is not possible, only minimize or close. Im not...
Read more >
Can't resize window using the top edge.
The application window can't be resized using the mouse at the top edge. It appears that there is a 1 to 2 area...
Read more >
resize window doesn't work in IDE - intermittent problem
Attempt to resize the output window by dragging and dropping the boundary, and it doesn't work. Grab handle (double headed up and down...
Read more >
Window: resize event - Web APIs | MDN
The resize event fires when the document view (window) has been resized. This event is not cancelable and does not bubble.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found