Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Leaflet always uses the full width #2987

Closed
amks1 opened this issue Apr 29, 2024 · 0 comments
Closed

Leaflet always uses the full width #2987

amks1 opened this issue Apr 29, 2024 · 0 comments

Comments

@amks1
Copy link

amks1 commented Apr 29, 2024

Description

I'm trying to fit leaflet into one third of the page width.

with ui.row().classes('w-full'):
    ui.label("Test1")
    ui.label("Test2")
    ui.leaflet()

Output:
image

If I do something like this, the map doesn't show at all.

with ui.row().classes('w-full'):
    ui.label("Test1")
    ui.label("Test2")
    with ui.element('div'):
        ui.leaflet()

Output:
image

@zauberzeug zauberzeug locked and limited conversation to collaborators Apr 30, 2024
@falkoschindler falkoschindler converted this issue into discussion #2988 Apr 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant