restore font-size:12px on .ace_editor and add line-height: normal

This commit is contained in:
nightwing 2013-02-03 16:40:19 +04:00
commit 944edc931a
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,8 @@
position: relative;
overflow: hidden;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
font-size: 12px;
line-height: normal;
}
.ace_scroller {

View file

@ -342,6 +342,8 @@ var Editor = function(renderer, session) {
*
**/
this.setFontSize = function(size) {
if (typeof size == "number")
size = size + "px";
this.container.style.fontSize = size;
this.renderer.updateFontSize();
};