Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Address width and scrolling in Shiny apps #102

Open
amoeba opened this issue Apr 29, 2021 · 1 comment
Open

Address width and scrolling in Shiny apps #102

amoeba opened this issue Apr 29, 2021 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@amoeba
Copy link
Collaborator

amoeba commented Apr 29, 2021

edit_biblio, for example, gets really wide and unwieldy. We might use another approach there or at least find a way to keep the help documentation visible while you scroll.

@robitalec
Copy link
Member

Looking into this today, it seems like handsontables does some behind the scenes work that makes it a bit trickier than just setting a CSS for the table.

We can turn off AutoColumnSize by passing colWidths = '100px' (for example) to rhandsontable::rhandsontable. I think it would be preferable to leave it dynamic with the caveat of limiting a maximum width, but unfortunately that does not seem possible at the moment (see here).

I haven't been able to work around handsontable to set a maximum width when we are editing a cell (css handsontableInput).

One challenge I'm noticing with a fixed colWidths is if your columns are filled with lots of text, the horizontal scrollbar gets lost at the bottom of the page..

I opened a PR with the colWidths approach for you to test if you'd like (#113)

Another totally alternative idea I had was essentially transposing the CSV to scroll vertically through the different fields - this might actually be an easier way to visualize and input the data. Would just require more data manipulation.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants