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
c9899a74
Commit
c9899a74
authored
Sep 18, 2007
by
Brandon Aaron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
offset: do not add borders for table cells
parent
d5999be9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
offset.js
src/offset.js
+1
-1
No files found.
src/offset.js
View file @
c9899a74
...
@@ -43,7 +43,7 @@ jQuery.fn.offset = function() {
...
@@ -43,7 +43,7 @@ jQuery.fn.offset = function() {
// Mozilla and Safari > 2 does not include the border on offset parents
// Mozilla and Safari > 2 does not include the border on offset parents
// However Mozilla adds the border for table cells
// However Mozilla adds the border for table cells
if
(
mozilla
&&
/^t
[
d|h
]
$/i
.
test
(
parent
.
tagName
)
||
!
safari
2
)
if
(
mozilla
&&
!
/^t
[
d|h
]
$/i
.
test
(
offsetParent
.
tagName
)
||
safari
&&
parseInt
(
version
)
>=
52
2
)
border
(
offsetParent
);
border
(
offsetParent
);
// Safari <= 2 doubles body offsets with an absolutely positioned element or parent
// Safari <= 2 doubles body offsets with an absolutely positioned element or parent
...
...
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