Set font size on updating settings

New font size passed thru to this function to apply to the class
property on demand
This commit is contained in:
Matt Pass
2013-04-20 16:13:24 +01:00
parent 2fa780236b
commit b5050acba0

View File

@@ -1452,7 +1452,7 @@ var ICEcoder = {
},
// Update the settings used when we make a change to them
useNewSettings: function(themeURL,codeAssist,lockedNav,visibleTabs,lineWrapping,indentWithTabs,indentSize,refreshFM) {
useNewSettings: function(themeURL,codeAssist,lockedNav,visibleTabs,fontSize,lineWrapping,indentWithTabs,indentSize,refreshFM) {
var styleNode, strCSS, cMCSS, activeLineBG;
// Add new stylesheet for selected theme
@@ -1478,6 +1478,7 @@ var ICEcoder = {
cMCSS = ICEcoder.content.contentWindow.document.styleSheets[3];
strCSS = cMCSS.rules ? 'rules' : 'cssRules';
cMCSS[strCSS][0].style['fontSize'] = fontSize;
cMCSS[strCSS][5].style['content'] = visibleTabs ? '"\\21e5"' : '" "';
cMCSS[strCSS][2].style.cssText = "background: " + activeLineBG + " !important";