X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/ccac057cea9d0852c33a970d12856ea39cd75291..55a7fd3acdadc4777e2680b9bf64f96c509c6dac:/src/editor/views/openSelect/openSelect.js?ds=inline diff --git a/src/editor/views/openSelect/openSelect.js b/src/editor/views/openSelect/openSelect.js index 718a4a0..ef5b94a 100644 --- a/src/editor/views/openSelect/openSelect.js +++ b/src/editor/views/openSelect/openSelect.js @@ -24,6 +24,12 @@ var OpenSelect = Backbone.View.extend({ 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');