posit-dev / posit-dev/py-shiny

Dataframe Scrollability inconsistency

Open
#840 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage
Dominant language
Python
Stars
1.8k
Forks
135
Avg merge
2d 18h
Merged PRs (30d)
21

Description

When you populate a ui.output_data_frame with a populated pandas dataframe and set the height or width to "100%", the scrollability can be inconstant. I also provided some visuals on what this looks like (I colored out all info from the data frame).

If you set the height to "100%", some of the last rows on the bottom will be missing/not shown if you scroll all the way to the bottom.
height_100

If you set the width to "100%", the left-to-right scroll bar would scroll farther than the dataframe itself, showing you a lot of blank space if you move all the way to the right.
width_100

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with ui.output_data_frame and a populated pandas dataframe, testing height="100%" and width="100%" separately. Compare the scroll extents with the dataframe bounds; done means the bottom rows remain reachable and horizontal scrolling ends at the dataframe rather than blank space.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.