Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
c078b83b
Commit
c078b83b
authored
Aug 25, 2012
by
Mike Sherov
Committed by
Dave Methvin
Aug 28, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #12313, .height()/.width() just use CSS if no offsetWidth. Close gh-909.
parent
9a92c542
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
css.js
src/css.js
+4
-1
No files found.
src/css.js
View file @
c078b83b
...
@@ -411,7 +411,10 @@ function getWidthOrHeight( elem, name, extra ) {
...
@@ -411,7 +411,10 @@ function getWidthOrHeight( elem, name, extra ) {
valueIsBorderBox
=
true
,
valueIsBorderBox
=
true
,
isBorderBox
=
jQuery
.
support
.
boxSizing
&&
jQuery
.
css
(
elem
,
"boxSizing"
)
===
"border-box"
;
isBorderBox
=
jQuery
.
support
.
boxSizing
&&
jQuery
.
css
(
elem
,
"boxSizing"
)
===
"border-box"
;
if
(
val
<=
0
)
{
// some non-html elements return undefined for offsetWidth, so check for null/undefined
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
if
(
val
<=
0
||
val
==
null
)
{
// Fall back to computed then uncomputed css if necessary
// Fall back to computed then uncomputed css if necessary
val
=
curCSS
(
elem
,
name
);
val
=
curCSS
(
elem
,
name
);
if
(
val
<
0
||
val
==
null
)
{
if
(
val
<
0
||
val
==
null
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment