-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix(b-modal): check for wether the body is overflowing #6481
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
base: dev
Are you sure you want to change the base?
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/bootstrap-vue/bootstrap-vue/JJQjoXFq6CD7A6rKTf7hKwRe3Mnv |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 7261b13:
|
Codecov Report
@@ Coverage Diff @@
## dev #6481 +/- ##
===========================================
- Coverage 100.00% 99.93% -0.07%
===========================================
Files 299 299
Lines 10211 10213 +2
Branches 2521 2523 +2
===========================================
- Hits 10211 10206 -5
- Misses 0 5 +5
- Partials 0 2 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
I believe the current behavior is intended. Here's how it currently looks on the docs when opening a modal: KSZdp1jiGW.mp4Notice how the added padding makes it so the background doesn't shift. Compared to the docs with your change applied: NPK5cxxLIN.mp4 |
I see, but then you have the opposite problem if the screen doesn't have a scrollbar, and the content is not as wide as the screen. What's the fix then? |
I'm not quite sure what you mean. ux9auwXBIE.mp4 |
I see what you mean in your codepen, but I'm not sure what can be done about it. |
I've made an update here, it now checks the body element by length instead of by width. |
Describe the PR
Opening a modal incorrectly always pads the body and the modal even when there is no reason to because the scroll bar isn't needed.
PR checklist
What kind of change does this PR introduce? (check at least one)
fix(...)
, requires a patch version updateDoes this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
dev
branch, not themaster
branch[...] (fixes #xxx[,#xxx])
, where "xxx" is the issue number)fix(alert): not alerting during SSR render
,docs(badge): update pill examples
,chore(docs): fix typo in README
, etc.). This is very important, as theCHANGELOG
is generated from these messages, and determines the next version type (patch or minor).