Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
bootstrap
Commits
a93a753c
Commit
a93a753c
authored
Dec 24, 2013
by
fat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #10134 – dont use jquery offset directly because it uses sub pixel rendering
parent
fe7fffe0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
8 deletions
+26
-8
dist/js/bootstrap.js
dist/js/bootstrap.js
+12
-3
dist/js/bootstrap.min.js
dist/js/bootstrap.min.js
+1
-1
docs-assets/js/raw-files.js
docs-assets/js/raw-files.js
+1
-1
js/tooltip.js
js/tooltip.js
+12
-3
No files found.
dist/js/bootstrap.js
View file @
a93a753c
...
@@ -1201,9 +1201,18 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
...
@@ -1201,9 +1201,18 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
offset
.
top
=
offset
.
top
+
marginTop
offset
.
top
=
offset
.
top
+
marginTop
offset
.
left
=
offset
.
left
+
marginLeft
offset
.
left
=
offset
.
left
+
marginLeft
$tip
// $.fn.offset doesn't round pixel values
.
offset
(
offset
)
// so we use setOffset directly with our own function B-0
.
addClass
(
'
in
'
)
jQuery
.
offset
.
setOffset
(
$tip
[
0
],
$
.
extend
({
using
:
function
(
props
)
{
$tip
.
css
({
top
:
Math
.
round
(
props
.
top
),
left
:
Math
.
round
(
props
.
left
)
})
}
},
offset
),
0
)
$tip
.
addClass
(
'
in
'
)
// check to see if placing tip in new offset caused the tip to resize itself
// check to see if placing tip in new offset caused the tip to resize itself
var
actualWidth
=
$tip
[
0
].
offsetWidth
var
actualWidth
=
$tip
[
0
].
offsetWidth
...
...
dist/js/bootstrap.min.js
View file @
a93a753c
This diff is collapsed.
Click to expand it.
docs-assets/js/raw-files.js
View file @
a93a753c
This diff is collapsed.
Click to expand it.
js/tooltip.js
View file @
a93a753c
...
@@ -199,9 +199,18 @@
...
@@ -199,9 +199,18 @@
offset
.
top
=
offset
.
top
+
marginTop
offset
.
top
=
offset
.
top
+
marginTop
offset
.
left
=
offset
.
left
+
marginLeft
offset
.
left
=
offset
.
left
+
marginLeft
$tip
// $.fn.offset doesn't round pixel values
.
offset
(
offset
)
// so we use setOffset directly with our own function B-0
.
addClass
(
'
in
'
)
jQuery
.
offset
.
setOffset
(
$tip
[
0
],
$
.
extend
({
using
:
function
(
props
)
{
$tip
.
css
({
top
:
Math
.
round
(
props
.
top
),
left
:
Math
.
round
(
props
.
left
)
})
}
},
offset
),
0
)
$tip
.
addClass
(
'
in
'
)
// check to see if placing tip in new offset caused the tip to resize itself
// check to see if placing tip in new offset caused the tip to resize itself
var
actualWidth
=
$tip
[
0
].
offsetWidth
var
actualWidth
=
$tip
[
0
].
offsetWidth
...
...
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