Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
ad8807ca
Commit
ad8807ca
authored
6 months ago
by
ambient.impact
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3487907
: Drupal.displace() use getComputedStyle() for hidden chk.
parent
1c33460a
No related branches found
No related tags found
2 merge requests
!10259
Issue #3487907: Drupal.displace() use getComputedStyle() for hidden chk.
,
!10210
Issue #3487907: Drupal.displace() use getComputedStyle() for hidden chk.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/misc/displace.js
+6
-2
6 additions, 2 deletions
core/misc/displace.js
with
6 additions
and
2 deletions
core/misc/displace.js
+
6
−
2
View file @
ad8807ca
...
...
@@ -159,8 +159,12 @@
const
n
=
displacingElements
.
length
;
for
(
let
i
=
0
;
i
<
n
;
i
++
)
{
const
el
=
displacingElements
[
i
];
// If the element is not visible, do consider its dimensions.
if
(
el
.
style
.
display
===
'
none
'
)
{
// If the element is set to display: none; do not consider its dimensions.
//
// @see https://api.jquery.com/hidden-selector/
// For a more thorough implementation that considers other properties
// and whether the element has layout at all.
if
(
getComputedStyle
(
el
).
display
===
'
none
'
)
{
continue
;
}
// If the offset data attribute contains a displacing value, use it.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment