editor: additional descriptions for some transactions
[fnpeditor.git] / src / editor / views / openSelect / openSelect.js
index 718a4a0..ef5b94a 100644 (file)
@@ -24,6 +24,12 @@ var OpenSelect = Backbone.View.extend({
             this.input = $(this.options.inputTemplate);
             this.$('.input-wrapper').append(this.input);
         }
             this.input = $(this.options.inputTemplate);
             this.$('.input-wrapper').append(this.input);
         }
+        if(this.options.maxHeight) {
+            this.menu.css('max-height', this.options.maxHeight);
+        }
+        if(this.options.maxWidth) {
+            this.menu.css('max-width', this.options.maxWidth);
+        }
     },
     toggleHandler: function(toggle) {
         this.$('.toggle').css('visibility', toggle ? 'inherit' : 'hidden');
     },
     toggleHandler: function(toggle) {
         this.$('.toggle').css('visibility', toggle ? 'inherit' : 'hidden');