in src/OrchardCore.Modules/OrchardCore.ContentFields/wwwroot/Scripts/fontawesome-iconpicker.js [658:815]
updatePlacement: function(e, a) {
e = e || this.options.placement;
this.options.placement = e;
a = a || this.options.collision;
a = a === true ? "flip" : a;
var t = {
at: "right bottom",
my: "right top",
of: this.hasInput() && !this.isInputGroup() ? this.input : this.container,
collision: a === true ? "flip" : a,
within: window
};
this.popover.removeClass("inline topLeftCorner topLeft top topRight topRightCorner " + "rightTop right rightBottom bottomRight bottomRightCorner " + "bottom bottomLeft bottomLeftCorner leftBottom left leftTop");
if (typeof e === "object") {
return this.popover.pos(c.extend({}, t, e));
}
switch (e) {
case "inline":
{
t = false;
}
break;
case "topLeftCorner":
{
t.my = "right bottom";
t.at = "left top";
}
break;
case "topLeft":
{
t.my = "left bottom";
t.at = "left top";
}
break;
case "top":
{
t.my = "center bottom";
t.at = "center top";
}
break;
case "topRight":
{
t.my = "right bottom";
t.at = "right top";
}
break;
case "topRightCorner":
{
t.my = "left bottom";
t.at = "right top";
}
break;
case "rightTop":
{
t.my = "left bottom";
t.at = "right center";
}
break;
case "right":
{
t.my = "left center";
t.at = "right center";
}
break;
case "rightBottom":
{
t.my = "left top";
t.at = "right center";
}
break;
case "bottomRightCorner":
{
t.my = "left top";
t.at = "right bottom";
}
break;
case "bottomRight":
{
t.my = "right top";
t.at = "right bottom";
}
break;
case "bottom":
{
t.my = "center top";
t.at = "center bottom";
}
break;
case "bottomLeft":
{
t.my = "left top";
t.at = "left bottom";
}
break;
case "bottomLeftCorner":
{
t.my = "right top";
t.at = "left bottom";
}
break;
case "leftBottom":
{
t.my = "right top";
t.at = "left center";
}
break;
case "left":
{
t.my = "right center";
t.at = "left center";
}
break;
case "leftTop":
{
t.my = "right bottom";
t.at = "left center";
}
break;
default:
{
return false;
}
break;
}
this.popover.css({
display: this.options.placement === "inline" ? "" : "block"
});
if (t !== false) {
this.popover.pos(t).css("maxWidth", c(window).width() - this.container.offset().left - 5);
} else {
this.popover.css({
top: "auto",
right: "auto",
bottom: "auto",
left: "auto",
maxWidth: "none"
});
}
this.popover.addClass(this.options.placement);
return true;
},