mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-09 08:45:55 +02:00
feb0c02c9a
Signed-off-by: Stefan Weil <sw@weilnetz.de>
9 lines
225 B
JavaScript
9 lines
225 B
JavaScript
const layoutUtils = {};
|
|
|
|
layoutUtils.size = function(preferred, min, max) {
|
|
if (preferred < min) return min;
|
|
if (typeof max !== 'undefined' && preferred > max) return max;
|
|
return preferred;
|
|
}
|
|
|
|
module.exports = layoutUtils; |