diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 316a49da5..67ff4d50a 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -140,10 +140,15 @@ define([ return text.trim(); }; + var isMobile = window.orientation || (typeof(screen) !== "undefined" && screen.orientation); + module.mkIndentSettings = function (editor, metadataMgr) { var setIndentation = function (units, useTabs, fontSize, spellcheck, brackets) { if (typeof(units) !== 'number') { return; } var doc = editor.getDoc(); + if (isMobile && fontSize < 16) { + fontSize = 16; + } editor.setOption('indentUnit', units); editor.setOption('tabSize', units); editor.setOption('indentWithTabs', useTabs);