Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions leafmap/maplibregl.py
Original file line number Diff line number Diff line change
Expand Up @@ -10482,7 +10482,9 @@ def __init__(
description="All layers on/off",
style=style,
indent=False,
layout=widgets.Layout(width="100%"),
# "auto" rather than "100%": the checkbox has a 2px margin, so a
# 100% width overflows the panel and shows a horizontal scrollbar.
layout=widgets.Layout(width="auto"),
)
self.master_toggle.observe(self.toggle_all_layers, names="value")

Expand All @@ -10494,7 +10496,7 @@ def __init__(
description=f"{group_name} group layers on/off",
style=style,
indent=False,
layout=widgets.Layout(width="100%"),
layout=widgets.Layout(width="auto"),
)
group_toggle.observe(self.toggle_group_layers, names="value")
self.group_toggles.children += (group_toggle,)
Expand Down
Loading