diff --git a/apps/common/main/lib/view/SymbolTableDialog.js b/apps/common/main/lib/view/SymbolTableDialog.js index 181083aea..213d503fd 100644 --- a/apps/common/main/lib/view/SymbolTableDialog.js +++ b/apps/common/main/lib/view/SymbolTableDialog.js @@ -347,6 +347,10 @@ define([ var lastTime = -1; var lastKeyCode = -1; + var minScrollbarLength = 20; + var wheelSpeed = 20; + + var loadTranslation = function(lang, callback) { lang = lang.split(/[\-_]/)[0].toLocaleLowerCase(); Common.Utils.loadConfig('resources/symboltable/' + lang + '.json', function (langJson) { @@ -360,16 +364,31 @@ define([ Common.Views.SymbolTableDialog = Common.UI.Window.extend(_.extend({ options: { + resizable : true, + minwidth : 450, + minheight : 394, width: 450, - height: 395, - style: 'min-width: 230px;', + height: 396, cls: 'modal-dlg', buttons: ['ok', 'cancel'] }, initialize : function(options) { + var filter = Common.localStorage.getKeysFilter(); + this.appPrefix = (filter && filter.length) ? filter.split(',')[0] : ''; + + var path = this.appPrefix + 'settings-size-symbol-table', + size = Common.Utils.InternalSettings.get(path); + if (size==null || size==undefined) { + size = Common.localStorage.getItem(path) || ''; + Common.Utils.InternalSettings.set(path, size); + } + size = size ? JSON.parse(size) : []; + _.extend(this.options, { - title: this.textTitle + title: this.textTitle, + width : size[0] || 450, + height : size[1] || 396 }, options || {}); this.template = [ @@ -387,7 +406,7 @@ define([ '', '