Skip to content

Take container padding into account for canvases#4279

Open
JanMisker wants to merge 1 commit intokatspaugh:mainfrom
JanMisker:main
Open

Take container padding into account for canvases#4279
JanMisker wants to merge 1 commit intokatspaugh:mainfrom
JanMisker:main

Conversation

@JanMisker
Copy link
Contributor

Subtract padding from container width when calculating canvas widths. Cache this padding value and recalculate when resizing.

Short description

Resolves #3892

Implementation details

The padding is cached and re-calculated only when the container resizes.

How to test it

::part(scroll) {
  padding: 12px;
}

Screenshots

See #3892

Checklist

  • This PR is covered by e2e tests
  • It introduces no breaking API changes

… Cache this padding value and recalculate when resizing.
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.

1 participant