',
+ '
',
- '
',
- ''
@@ -515,10 +517,13 @@ define([
this.handler = options.handler;
this.throughIndexes = [];
this.filteredIndexes = [];
+ this.curSize = undefined;
_options.tpl = _.template(this.template)(_options);
Common.UI.Window.prototype.initialize.call(this, _options);
+
+ this.on('resize', _.bind(this.onWindowResize, this));
},
render: function () {
@@ -526,6 +531,12 @@ define([
Common.UI.Window.prototype.render.call(this);
+ var $border = this.$window.find('.resize-border');
+ this.$window.find('.resize-border.left, .resize-border.top').css({'cursor': 'default'});
+ $border.removeClass('left');
+ $border.removeClass('top');
+
+
this.$window.find('.btn').on('click', _.bind(this.onBtnClick, this));
this.btnOk = new Common.UI.Button({
@@ -1359,6 +1370,14 @@ define([
return false;
},
+ onWindowResize: function () {
+ var size = this.getSize();
+ if (size !== this.curSize) {
+ this.$window.find('.combo-values').css({'height': size[1]-100 + 'px'});
+ this.curSize = size;
+ }
+ },
+
okButtonText : 'Ok',
btnCustomFilter : 'Custom Filter',
textSelectAll : 'Select All',