add collision flag to adjust tooltip position, fix

This commit is contained in:
vitalets 2013-06-29 10:59:41 +04:00
parent f1f3edb30b
commit b4294c4545
2 changed files with 9 additions and 4 deletions

@ -3,6 +3,7 @@ X-editable changelog
Version 1.4.6 wip
----------------------------
[enh #281] add coliision flag to jQuery UI tooltip (vitalets)
[bug #279] fix jQuery UI tooltip z-index to be less than select2 dropdown (vitalets)
[bug #276] support id() and text() functions of select2 (vitalets)

@ -78,25 +78,29 @@
case 'top':
pos = {
my: "center bottom-5",
at: "center top"
at: "center top",
collision: 'flipfit'
};
break;
case 'right':
pos = {
my: "left+5 center",
at: "right center"
at: "right center",
collision: 'flipfit'
};
break;
case 'bottom':
pos = {
my: "center top+5",
at: "center bottom"
at: "center bottom",
collision: 'flipfit'
};
break;
case 'left':
pos = {
my: "right-5 center",
at: "left center"
at: "left center",
collision: 'flipfit'
};
break;
}