Search and Top Navigation
#8739 closed bug (fixed)
Opened October 27, 2012 02:04AM UTC
Closed November 05, 2012 06:06PM UTC
Last modified November 13, 2012 03:47PM UTC
Tooltip: Default positioning on large items off
Reported by: | dsargent@gmail.com | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.2 |
Component: | ui.tooltip | Version: | 1.9.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Example:
http://jqueryui.com/tooltip/#custom-content
Hover over Viena Austria link that is supposed to open a map (due to the new position it doesn't work so well in the demo, which also needs fixed).
The background border image does not size well to the large item in the box.
I see this will my own content when loading an image. If memory serves, this worked well in 1.9 but does not in 1.9.1
Attachments (0)
Change History (6)
Changed October 27, 2012 02:12AM UTC by comment:1
status: | new → open |
---|---|
summary: | Tooltip background does not size well to large items. → Tooltip: Default positioning on large items off |
Changed October 30, 2012 01:39PM UTC by comment:2
_comment0: | We can fix that demo by overriding two things: {{{.ui-tooltip { max-width: 350px }}}} and {{{position: { collision: "flipfit flip" }}}} \ \ Though I think we really need to change the default collision for tooltip. We shouldn't allow vertical fit, as that can cause the tooltip to overlap the tooltipped element, which never be allowed to happen. → 1352133542269499 |
---|
We can fix that demo by overriding two things:
.ui-tooltip { max-width: 350px} and
position: { collision: "flipfit flip"}
Though I think we really need to change the default collision for tooltip. We shouldn't allow vertical fit, as that can cause the tooltip to overlap the tooltipped element, which should never be allowed to happen.
Changed November 05, 2012 04:40PM UTC by comment:3
Talked with Scott about this: We'll set max-width:350 in the demo and make the collision default "flipfit flip" for tooltip.
Changed November 05, 2012 06:06PM UTC by comment:4
resolution: | → fixed |
---|---|
status: | open → closed |
Tooltip: Make 'flipfit flip' the collision default to avoid the tooltip ever overlapping the trigger. Also fix max-width for custom-content demo. Fixes #8739 - Tooltip: Default positioning on large items off.
Changeset: 1d9eab1ead0d5a6f60e31437bb539eb3f804bacc
Changed November 13, 2012 03:46PM UTC by comment:5
Tooltip: Make 'flipfit flip' the collision default to avoid the tooltip ever overlapping the trigger. Also fix max-width for custom-content demo. Fixes #8739 - Tooltip: Default positioning on large items off.
(cherry picked from commit 1d9eab1ead0d5a6f60e31437bb539eb3f804bacc)
Changeset: fbc0e6afe6cb277f7e8b91817484cdcd002afc32
Changed November 13, 2012 03:47PM UTC by comment:6
milestone: | 1.10.0 → 1.9.2 |
---|
Thanks for taking the time to contribute to the jQuery UI project! The demo is definitely broken. Probably caused by this commit - https://github.com/jquery/jquery-ui/commit/7af1ec727bcca8367e804cea77b9dd238b1c0d69. In general you can always override the position using the position option - http://api.jqueryui.com/tooltip/#option-position.