devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
32 lines (31 loc) • 751 B
JavaScript
/**
* DevExtreme (esm/__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/
*/
import {
getOuterWidth
} from "../../../core/utils/size";
import {
hasWindow
} from "../../../core/utils/window";
const getElementWidth = $element => {
if (hasWindow()) {
return getOuterWidth($element)
}
return
};
const getSizeValue = size => {
const normalized = null === size ? void 0 : size;
if ("function" === typeof normalized) {
return normalized()
}
return normalized
};
export {
getElementWidth,
getSizeValue
};