Skip to content

Conversation

@Zache
Copy link
Contributor

@Zache Zache commented Dec 5, 2025

A fix so that if an element has a non-integer value for padding-right and is adjusted as part of the scroll lock, then the fractional part isn't lost. The current behavior causes those element to shift horizontally as the scroll lock is added and then removed.

@mui-bot
Copy link

mui-bot commented Dec 5, 2025

Netlify deploy preview

https://deploy-preview-47420--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-1B(0.00%) 🔺+3B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 3e6e349

@ZeeshanTamboli ZeeshanTamboli added scope: modal Changes related to the modal. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Dec 10, 2025
@ZeeshanTamboli ZeeshanTamboli changed the title [material-ui][Modal] Take non-integer padding-right into consideratio when scroll locking [modal] Take non-integer padding-right into consideration when scroll locking Dec 10, 2025
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

Thanks.

@ZeeshanTamboli ZeeshanTamboli merged commit 1677d4d into mui:master Dec 10, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: modal Changes related to the modal. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants