From cdbddbae3bc0ea6cf2a7b09a9265cd6afdcf9970 Mon Sep 17 00:00:00 2001 From: AssassinJN Date: Mon, 13 Feb 2023 09:20:11 -0500 Subject: [PATCH] remove js based sizing --- ui/media/js/searchable-models.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/ui/media/js/searchable-models.js b/ui/media/js/searchable-models.js index d28bbcdf..89fb38e6 100644 --- a/ui/media/js/searchable-models.js +++ b/ui/media/js/searchable-models.js @@ -85,14 +85,6 @@ class ModelDropdown this.inputModels = modelsOptions[this.modelKey] this.populateModels() }, this)) - document.addEventListener("collapsibleClick", this.bind(function(e) { - // update the input size when the element becomes visible - this.updateInputSize() - }, this)) - document.addEventListener("tabClick", this.bind(function(e) { - // update the input size when the tab changes - this.updateInputSize() - }, this)) } saveCurrentSelection(elem, value, path) { @@ -492,18 +484,6 @@ class ModelDropdown return { width, height } } - updateInputSize() { - if (this.modelList !== undefined) { - const dimensions = this.getElementDimensions(this.modelList) - this.modelFilter.style.width = dimensions.width + 'px' - this.modelList.style.width = dimensions.width + 'px' - this.modelFilterArrow.style.height = dimensions.height + 'px' - if (this.modelFilter.offsetLeft > 0) { - this.modelList.style.left = this.modelFilter.offsetLeft + 'px' - } - } - } - flattenModelList(models, path) { models.forEach(entry => { if (Array.isArray(entry)) { @@ -570,7 +550,6 @@ class ModelDropdown this.modelList = document.querySelector(`#${this.modelFilter.id}-model-list`) this.modelResult = document.querySelector(`#${this.modelFilter.id}-model-result`) this.modelNoResult = document.querySelector(`#${this.modelFilter.id}-model-no-result`) - this.updateInputSize() if (this.modelFilterInitialized !== true) { this.modelFilter.addEventListener('input', this.bind(this.filterList, this))