mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +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; |