diff --git a/src/static/css/pad.css b/src/static/css/pad.css index 948f0245..d184214c 100644 --- a/src/static/css/pad.css +++ b/src/static/css/pad.css @@ -894,9 +894,7 @@ down on the page in IE. Strange but it works! */ line-height: 20px; width: auto; } -#viewzoommenu { - width: 65px -} + #bottomarea { height: 28px; overflow: hidden; diff --git a/src/static/js/pad_editor.js b/src/static/js/pad_editor.js index b8a4ea0e..84c2e027 100644 --- a/src/static/js/pad_editor.js +++ b/src/static/js/pad_editor.js @@ -58,7 +58,6 @@ var padeditor = (function() self.setViewOptions(initialViewOptions); // view bar - self.initViewZoom(); $("#viewbarcontents").show(); }, initViewOptions: function() @@ -105,36 +104,6 @@ var padeditor = (function() self.ace.setProperty("textface", (v ? "monospace" : "Arial, sans-serif")); $("#viewfontmenu").val(v ? "monospace" : "normal"); }, - initViewZoom: function() - { - var viewZoom = Number(padcookie.getPref('viewZoom')); - if ((!viewZoom) || isNaN(viewZoom)) - { - viewZoom = 100; - } - self.setViewZoom(viewZoom); - $("#viewzoommenu").change(function(evt) - { - // strip initial 'z' from val - self.setViewZoom(Number($("#viewzoommenu").val().substring(1))); - }); - }, - setViewZoom: function(percent) - { - if (!(percent >= 50 && percent <= 1000)) - { - // percent is out of sane range or NaN (which fails comparisons) - return; - } - - self.viewZoom = percent; - $("#viewzoommenu").val('z' + percent); - - var baseSize = 13; - self.ace.setProperty('textsize', Math.round(baseSize * self.viewZoom / 100)); - - padcookie.setPref('viewZoom', percent); - }, dispose: function() { if (self.ace)