I use SharePoint callouts with "beakOrientation":"leftRight". It sometimes show on the right, sometimes on the left. Can I set it only to the left? It works ok but breaks views on small laptops
Here is part of my code. Just for example - I dynamically add class to first callout (my divs and callouts are generated from list)
function addCalloutTip(id, tip, title, url, isFirst) {
// get the launchpoint element of the callout
var launchpoint = document.getElementById(id);
// first callout has different css, so add class to launchpoint dynamically
if (isFirst) {
launchpoint.classList.add("first-callout-parent");
}
// configure Callout options
var calloutOptions = new CalloutOptions();
calloutOptions.ID = id;
calloutOptions.launchPoint = launchpoint;
calloutOptions.beakOrientation = "leftRight"; // want to deny 'Right' here..
calloutOptions.content = tip;
calloutOptions.openOptions = {
event: "hover"
};
// call the CalloutManager to create the callout and then open
var callout = CalloutManager.createNewIfNecessary(calloutOptions);
callout.open();
}