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

Extra height in IE #622

Open
DhudumVishal opened this issue May 21, 2020 · 0 comments
Open

Extra height in IE #622

DhudumVishal opened this issue May 21, 2020 · 0 comments

Comments

@DhudumVishal
Copy link

I'm using re-resizable 6.4.0

    import "react-app-polyfill/ie11";
    import "react-app-polyfill/stable";

    import * as React from "react";
    import { render } from "react-dom";
    import { Resizable } from "re-resizable";

    const style = {
      display: "flex",
      alignItems: "center",
      justifyContent: "center",
      border: "solid 1px #ddd",
      background: "#f0f0f0"
    };

    const App = () => {
      return (
        <div
          style={{
            width: '300px',
            height: '1100px',
            display: 'flex',
            flexDirection: 'column',
            overflow: 'hidden',
          }}
        >
          <Resizable
            style={style}
            defaultSize={{
              width: '300',
              height: '900',
            }}
            maxHeight="1000"
            minHeight="500"
          >
            001
          </Resizable>
          <div style={{ ...style, width: '300px', height: '100%', minHeight: '1px' }}>002</div>
        </div>
      );
    };

    render(<App />, document.getElementById("root"));

My browser is: IE 11

I am sure this issue is not a duplicate?

Description

I had a requirement were the page height is greater than 1000px and resizable is 900px. The above code works fine for all other browsers but gives extra height in IE 11 which cannot be reduced as the height is beyond the HTML. The extra height is around 100vh so it cannot be ignored.

Basically my requirement was to make second div re-sizable with re-sizable handler at top i.e. between both div's that's why i have used first div as re-sizable and my re-sizable height is 900px.

Steps to Reproduce

  1. Run the above code in IE 11

Cannot provide sandbox link as its not working in IE

Expected behavior

There should be no extra height

Actual behavior

Adds extra height.

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