You've already forked joplin
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:
9
ReactNativeClient/lib/layout-utils.js
Normal file
9
ReactNativeClient/lib/layout-utils.js
Normal 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;
|
Reference in New Issue
Block a user