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

[Bug] Kepler GL has a good amount of whitespace on bottom #2877

Open
indranildeveloper opened this issue Dec 30, 2024 · 1 comment
Open

[Bug] Kepler GL has a good amount of whitespace on bottom #2877

indranildeveloper opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@indranildeveloper
Copy link
Contributor

Description
In my 2K LG monitor, there is a very big white space on the bottom.

To Reproduce
Steps to reproduce the behavior:

Here is the code I used:

import { KeplerGl } from "@kepler.gl/components";
import { AutoSizer } from "react-virtualized";

function App() {
  return (
    <div style={{ position: "absolute", width: "100%", height: "100%" }}>
      <AutoSizer>
        {({ height, width }) => (
          <KeplerGl
           mapboxApiAccessToken=""
            id="map"
            width={width}
            height={height}
          />
        )}
      </AutoSizer>
    </div>
  );
}

export default App;

Screen Recording

2024-12-30.16-15-40.mp4
@indranildeveloper indranildeveloper added the bug Something isn't working label Dec 30, 2024
@AlfredoRuizXcaliburmp
Copy link

AlfredoRuizXcaliburmp commented Jan 2, 2025

That's the mapboxgl-children you have to add to the css:

.maplibregl-map > div:last-child {
display: none;
}

That will make it hide and eliminate your problem.
It would also be good if you added the following to avoid the outer margin, the following code resets the margin and padding:

  • {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    }

If you want to fine-tune the right space now:

body {
width: 100%;
height: 100%;
overflow: hidden;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants