add collision flag to adjust tooltip position, fix #281
This commit is contained in:
parent
f1f3edb30b
commit
b4294c4545
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user