@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
17 lines (14 loc) • 407 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
/*
Function to calculate the real count of cells (columns or rows).
It's needed for calculating proper auto placement in IE.
*/
var realCellsCount = function realCellsCount(gap, cells) {
return gap ? Math.ceil(+cells / 2) : +cells;
};
var _default = realCellsCount;
exports.default = _default;