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

IE11 Spinner Positioning #35

Open
foxmicha opened this issue Apr 16, 2019 · 1 comment
Open

IE11 Spinner Positioning #35

foxmicha opened this issue Apr 16, 2019 · 1 comment

Comments

@foxmicha
Copy link

foxmicha commented Apr 16, 2019

In IE11, the spinner is positioned at the top of whatever container you place it in. In Chrome and FireFox, the spinner is always positioned in the center of the container.

IE11:
image

Chrome:
image

Any help is appreciated. Code added to standard create-react-app:

import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import LoadingOverlay from 'react-loading-overlay';

class App extends Component {
  render() {
    return (
      <div className="App">
        <LoadingOverlay active spinner animate text='Loading...'>
          <header className="App-header">
            <img src={logo} className="App-logo" alt="logo" />
            
              <p>
                Edit <code>src/App.js</code> and save to reload.
              </p>
            
            <a
              className="App-link"
              href="https://reactjs.org"
              target="_blank"
              rel="noopener noreferrer"
            >
              Learn React
            </a>
          </header>
        </LoadingOverlay>
      </div>
    );
  }
}

export default App;
@tkforce
Copy link

tkforce commented Mar 4, 2020

One workaround is to add custom CSS to override ._loading_overlay_content

._loading_overlay_content {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

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