cidgoh / DataHarmonizer

A standardized browser-based spreadsheet editor and validator that can be run offline and locally, and which includes templates for SARS-CoV-2 and Monkeypox sampling data. This project, created by the Centre for Infectious Disease Genomics and One Health (CIDGOH), at Simon Fraser University, is now an open-source collaboration with contributions from the National Microbiome Data Collaborative (NMDC), the LinkML development team, and others.
MIT License
91 stars 23 forks source link

Enumerations with a large number of elements are cut off when displaying the entire list #384

Closed prolog closed 1 year ago

prolog commented 1 year ago

I'm working with an enumeration of 15 elements. When opening a field that uses that enumeration in the UI, only the first 9 values are shown (the 9th is partially cut off), and there's no scrollbar to navigate down and see the rest. Arrow keys work, as does filtering the list of elements via typing - it just appears to be scrolling that's an issue.

ddooley commented 1 year ago

The behaviour of this control is set by: https://handsontable.com/docs/javascript-data-grid/dropdown-cell-type/ or https://handsontable.com/docs/javascript-data-grid/autocomplete-cell-type/ . What I'm not seeing is any ability to control visibility of a scrollbar via api parameter or css hack. Note that this is not an HTML select control. The list is a table relatively positioned, and programmatically moved via javascript that depends entirely on arrows or trackpad finger motions to navigate. Hmm!

In your tests I presume a mouse with scrollbar control does also work, but you were looking for providing functionality for those who don't have one; or providing some visual cue that there's a list to scroll?

prolog commented 1 year ago

Yup, mouse-with-scrollwheel works fine. This isn't a huge deal - from the discussions I've had it's likely that most of the inputs will be via CSV.

ddooley commented 1 year ago

Ok, thanks for feedback. It would be difficult to hack the handsontable code to do anything better, so I'm closing this for now.