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

Map is rendered above a vaadin dialog #24

Open
jhuber-de opened this issue Sep 10, 2020 · 0 comments
Open

Map is rendered above a vaadin dialog #24

jhuber-de opened this issue Sep 10, 2020 · 0 comments

Comments

@jhuber-de
Copy link

Describe the bug
Parts of a map are rendered above a dialog.

To Reproduce
Code

@Route("dialog-demo")
public class DialogDemo extends FlexLayout {

    public DialogDemo() {
        setSizeFull();

        MapOptions options = new DefaultMapOptions();
        LeafletMap map = new LeafletMap(options);

        map.setHeight("50%");
        map.setWidth("50%");
        map.setBaseUrl("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");

        TileLayer openStreetMap = new TileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png");
        openStreetMap.setAttribution("© <a href=https://www.openstreetmap.org/copyright>OpenStreetMap</a> contributors");
        openStreetMap.addTo(map);
        add(map);

        Button openDialog = new Button("Open dialog");
        openDialog.addThemeVariants(ButtonVariant.LUMO_PRIMARY);
        openDialog.addClickListener((event) -> {
            Dialog dialog = new Dialog();
            dialog.setWidth("600px");
            dialog.setHeight("400px");
            dialog.open();
        });
        add(openDialog);
    }
}

Steps to reproduce the behavior:

  1. Run code
  2. Open dialog

Expected behavior
The dialog should be rendered above the entire UI

Screenshots
image

Desktop:

  • OS: Manjaro 20.1
  • Browser: Firefox
  • Version Developer Edition 81.0b6 (64-bit)
  • Browser: Chrome
  • Version 84.0.4147.105 (Official Build) (64-bit)
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