Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.execute(function () {
// note: "return node.getBoundingClientRect();" doesn't work on IE; webdriver bug.
var dropDownRect = document.querySelector(".centered-dialog").getBoundingClientRect();
return {
// Use delite/Viewport to get size because window.innerWidth not quite right on iOS7.1.
// It returns 304 instead of 320.
viewport: require("delite/Viewport").getEffectiveBox(),
dropDownRect: {
left: dropDownRect.left,
width: dropDownRect.width,
top: dropDownRect.top,
height: dropDownRect.height
}
};
})
.then(function (ret) {