mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
commit
6424334768
2 changed files with 7 additions and 15 deletions
|
@ -27,7 +27,7 @@ define(function (require) {
|
|||
|
||||
{
|
||||
name: 'min_doc_count',
|
||||
default: false,
|
||||
default: null,
|
||||
editor: require('text!components/agg_types/controls/min_doc_count.html'),
|
||||
write: function (aggConfig, output) {
|
||||
if (aggConfig.params.min_doc_count) {
|
||||
|
|
|
@ -7,16 +7,10 @@ define(function (require) {
|
|||
var reflowWatcher = Private(require('components/reflow_watcher'));
|
||||
var sequencer = require('utils/sequencer');
|
||||
|
||||
var SCHEDULE_LONG = ResizeChecker.SCHEDULE_LONG = sequencer.createEaseOut(
|
||||
250, // shortest delay
|
||||
10000, // longest delay
|
||||
150 // tick count
|
||||
);
|
||||
|
||||
var SCHEDULE_SHORT = ResizeChecker.SCHEDULE_SHORT = sequencer.createEaseIn(
|
||||
5, // shortest delay
|
||||
500, // longest delay
|
||||
100 // tick count
|
||||
var SCHEDULE = ResizeChecker.SCHEDULE = sequencer.createEaseIn(
|
||||
5, // shortest delay
|
||||
10000, // longest delay
|
||||
125 // tick count
|
||||
);
|
||||
|
||||
// maximum ms that we can delay emitting 'resize'. This is only used
|
||||
|
@ -47,7 +41,7 @@ define(function (require) {
|
|||
}
|
||||
|
||||
ResizeChecker.prototype.onReflow = function () {
|
||||
this.startSchedule(SCHEDULE_LONG);
|
||||
this.startSchedule(SCHEDULE);
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -149,9 +143,7 @@ define(function (require) {
|
|||
return this.continueSchedule();
|
||||
}
|
||||
|
||||
// when the state changes start a new schedule. Use a schedule that quickly
|
||||
// slows down if it is unknown wether there are will be additional changes
|
||||
return this.startSchedule(dirty ? SCHEDULE_SHORT : SCHEDULE_LONG);
|
||||
return this.startSchedule(SCHEDULE);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue