UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

31 lines (30 loc) 923 B
/** * DevExtreme (cjs/__internal/ui/drop_down_editor/utils.js) * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getSizeValue = exports.getElementWidth = void 0; var _size = require("../../../core/utils/size"); var _window = require("../../../core/utils/window"); const getElementWidth = $element => { if ((0, _window.hasWindow)()) { return (0, _size.getOuterWidth)($element) } return }; exports.getElementWidth = getElementWidth; const getSizeValue = size => { const normalized = null === size ? void 0 : size; if ("function" === typeof normalized) { return normalized() } return normalized }; exports.getSizeValue = getSizeValue;