Settings 10px taller, offset tabs & autocomplete

Settings screen now 10px taller to help accomodate new Autocomplete
setting
Visible tabs have -1px margin left offset
Autocomplete updated live in session on settings change
This commit is contained in:
Matt Pass
2013-09-17 09:19:00 +01:00
parent 72cd067341
commit 927471e165

View File

@@ -1675,7 +1675,7 @@ var ICEcoder = {
// Show the settings screen
settingsScreen: function(hide) {
if (!hide) {
top.get('mediaContainer').innerHTML = '<iframe src="lib/settings-screen.php" class="whiteGlow" style="width: 970px; height: 600px"></iframe>';
top.get('mediaContainer').innerHTML = '<iframe src="lib/settings-screen.php" class="whiteGlow" style="width: 970px; height: 610px"></iframe>';
}
top.ICEcoder.showHide(hide?'hide':'show',top.get('blackMask'));
},
@@ -1699,7 +1699,7 @@ var ICEcoder = {
},
// Update the settings used when we make a change to them
useNewSettings: function(themeURL,codeAssist,lockedNav,tagWrapperCommand,visibleTabs,fontSize,lineWrapping,indentWithTabs,indentSize,refreshFM) {
useNewSettings: function(themeURL,codeAssist,lockedNav,tagWrapperCommand,autoComplete,visibleTabs,fontSize,lineWrapping,indentWithTabs,indentSize,refreshFM) {
var styleNode, strCSS, cMCSS, activeLineBG;
// Add new stylesheet for selected theme
@@ -1730,6 +1730,7 @@ var ICEcoder = {
strCSS = cMCSS.rules ? 'rules' : 'cssRules';
cMCSS[strCSS][0].style['fontSize'] = fontSize;
cMCSS[strCSS][4].style['border-left-width'] = visibleTabs ? '1px' : '0';
cMCSS[strCSS][4].style['margin-left'] = visibleTabs ? '-1px' : '0';
cMCSS[strCSS][2].style.cssText = "background-color: " + activeLineBG + " !important";
top.ICEcoder.lineWrapping = lineWrapping;
@@ -1746,6 +1747,10 @@ var ICEcoder = {
top.ICEcoder.tagWrapperCommand = tagWrapperCommand;
}
if (autoComplete != top.ICEcoder.autoComplete) {
top.ICEcoder.autoComplete = autoComplete;
}
// Finally, refresh the file manager if we need to
if (refreshFM) {top.ICEcoder.refreshFileManager()};
},