Skip to content

feat: expose map content padding (top, bottom, start, end)#145

Open
arturgesiarz wants to merge 2 commits intomainfrom
142-padding
Open

feat: expose map content padding (top, bottom, start, end)#145
arturgesiarz wants to merge 2 commits intomainfrom
142-padding

Conversation

@arturgesiarz
Copy link
Member

Add padding

Remove padding from JVM

@arturgesiarz
Copy link
Member Author

This change is part of the following stack:

Change managed by git-spice.

@arturgesiarz arturgesiarz linked an issue Feb 20, 2026 that may be closed by this pull request
Comment on lines +106 to +112
val padding = properties.contentPadding ?: MapContentPadding()
map.setPadding(
padding.start.toInt(),
padding.top.toInt(),
padding.end.toInt(),
padding.bottom.toInt(),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
val padding = properties.contentPadding ?: MapContentPadding()
map.setPadding(
padding.start.toInt(),
padding.top.toInt(),
padding.end.toInt(),
padding.bottom.toInt(),
)
properties.contentPadding?.run {
map.setPadding(start.toInt(), top.toInt(), end.toInt(), bottom.toInt())
}

Comment on lines +126 to +134
val contentPadding = properties.contentPadding ?: MapContentPadding()
view.setLayoutMargins(
UIEdgeInsetsMake(
contentPadding.top.toDouble(),
contentPadding.start.toDouble(),
contentPadding.bottom.toDouble(),
contentPadding.end.toDouble(),
)
)
Copy link
Contributor

@patrickmichalik patrickmichalik Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

Comment on lines +140 to +148
val contentPadding = properties.contentPadding ?: MapContentPadding()
view.setPadding(
UIEdgeInsetsMake(
contentPadding.top.toDouble(),
contentPadding.start.toDouble(),
contentPadding.bottom.toDouble(),
contentPadding.end.toDouble(),
)
)
Copy link
Contributor

@patrickmichalik patrickmichalik Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above.

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

Successfully merging this pull request may close these issues.

Need access to contentPadding

2 participants