Set overflow on closest .treeview when datetimepicker is shown
This applies the same technique as for completion. issue5967 review44861002
This commit is contained in:
1 parent
7defe1ddff
commit
b6017386ae
1 file changed
+10
@@ -1476,6 +1476,16 @@ function eval_pyson(value){
|
||||
});
|
||||
this.date.css('max-width', this._width);
|
||||
this.date.on('dp.change', this.focus_out.bind(this));
|
||||
// We must set the overflow of the treeview containing the input to
|
||||
// visible to prevent vertical scrollbar inherited from the auto
|
||||
// overflow-x
|
||||
// (see http://www.w3.org/TR/css-overflow-3/#overflow-properties)
|
||||
this.date.on('dp.hide', function() {
|
||||
this.date.closest('.treeview').css('overflow', '');
|
||||
}.bind(this));
|
||||
this.date.on('dp.show', function() {
|
||||
this.date.closest('.treeview').css('overflow', 'visible');
|
||||
}.bind(this));
|
||||
var mousetrap = new Mousetrap(this.el[0]);
|
||||
|
||||
mousetrap.bind(['enter', '='], function(e, combo) {
|
||||
|
||||
Reference in new issue
Block a user