author | Edouard Tisserant <edouard.tisserant@gmail.com> |
Tue, 09 Feb 2021 07:57:14 +0100 | |
branch | svghmi |
changeset 3131 | 2d750e38a4c6 |
parent 3130 | bdd81e12e7b5 |
child 3132 | a1e2eff0bc58 |
--- a/svghmi/widget_dropdown.ysl2 Tue Feb 09 07:56:25 2021 +0100 +++ b/svghmi/widget_dropdown.ysl2 Tue Feb 09 07:57:14 2021 +0100 @@ -295,6 +295,7 @@ b.height.baseVal.value = m.height; } highlight_selection(){ + if(this.last_selection == undefined) return; let highlighted_row = this.last_selection - this.menu_offset; if(highlighted_row < 0) return; let spans = this.text_elt.children;