How to use the delite/Viewport.getEffectiveBox function in delite

To help you get started, we’ve selected a few delite examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ibm-js / delite / tests / functional / HasDropDown.js View on Github external
.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) {

delite

core UI infrastructure for building multi channel, enterprise class Web Components to be used in Web & Mobile Hybrid applications

Unrecognized
Latest version published 3 years ago

Package Health Score

51 / 100
Full package analysis