@revolist/revogrid 4.8.9 → 4.8.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1163,12 +1163,7 @@ class FilterPlugin extends base_plugin.BasePlugin {
1163
1163
  const buttonPos = el.getBoundingClientRect();
1164
1164
  const prop = e.detail.prop;
1165
1165
  this.pop.filterTypes = this.getColumnFilter(e.detail.filter);
1166
- this.pop.show(Object.assign(Object.assign({}, this.filterCollection[prop]), { x: -9999, y: buttonPos.y - gridPos.y + buttonPos.height, prop }));
1167
- // fix filter dialog is out of view
1168
- setTimeout(async () => {
1169
- const { width } = this.pop.getBoundingClientRect();
1170
- this.pop.style.left = Math.min(buttonPos.x - gridPos.x, gridPos.width - width - 20) + 'px';
1171
- });
1166
+ this.pop.show(Object.assign(Object.assign({}, this.filterCollection[prop]), { x: buttonPos.x - gridPos.x, y: buttonPos.y - gridPos.y + buttonPos.height, autoCorrect: true, prop }));
1172
1167
  }
1173
1168
  getColumnFilter(type) {
1174
1169
  let filterType = 'string';