projects
/
roojs1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
set dynamic max height for bootstrap combo box
[roojs1]
/
Roo
/
bootstrap
/
form
/
ComboBox.js
diff --git
a/Roo/bootstrap/form/ComboBox.js
b/Roo/bootstrap/form/ComboBox.js
index
97a62cb
..
7b603b0
100644
(file)
--- a/
Roo/bootstrap/form/ComboBox.js
+++ b/
Roo/bootstrap/form/ComboBox.js
@@
-1828,6
+1828,8
@@
Roo.extend(Roo.bootstrap.form.ComboBox, Roo.bootstrap.form.TriggerField, {
if (!this.editable) {
Roo.get(document).on('keydown', this.listKeyPress, this);
}
+
+ this.list.setStyle('maxHeight', 'calc(100% - ' + this.list.getTop() + 'px - 50px)');
this.fireEvent('expand', this);
},