1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Show editor and rendering side by side

This commit is contained in:
Laurent Cozic
2017-11-07 21:11:14 +00:00
parent 9e3af21e66
commit 8bf85b6b88
8 changed files with 244 additions and 40 deletions

View File

@ -0,0 +1,9 @@
const layoutUtils = {};
layoutUtils.size = function(prefered, min, max) {
if (prefered < min) return min;
if (typeof max !== 'undefined' && prefered > max) return max;
return prefered;
}
module.exports = layoutUtils;