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

Left side frozen columns data scrolls with unfrozen columns when scrolling goes beyond initial width of tabulator pane width. #7593

Open
1 task
GeoVizNow opened this issue Jan 6, 2025 · 0 comments

Comments

@GeoVizNow
Copy link

GeoVizNow commented Jan 6, 2025

Thanks for the great work continuously being done by developers and contributors of panel! I noticed one issue I wanted to make you aware of (though it is also mentioned in other issue, as pointed to below).

ALL software version info

Software Version Info
bokeh: 3.5.2
pandas: 2.1.4

OS: Windows10 Enterprise
python: 3.11.4

Description of expected behavior and the observed behavior

Data in frozen columns are expected to stay frozen all the time when scrolling horizontally.

Currently the data in frozen columns to the left starts to slide with data in unfrozen columns when scrolling goes beyond initial pane width.

Complete, minimal, self-contained example code that reproduces the issue

Store the below into file named frozen_column_data_issue.py
Run panel serve frozen_column_data_issue.py

import panel as pn
import pandas as pd
import random
pn.extension('tabulator')

data = {f'col_{chr(97 + k)}': [random.randint(0, 100) for _ in range(20)] for k in range(10)}
df = pd.DataFrame(data)

tab = pn.widgets.Tabulator(
    df,
    width=400,
    # sizing_mode='stretch_width',
    frozen_columns=list(df.columns[:2]),
    theme='fast')
tab.servable()

The issue is also mentioned in #7543

The fix by https://github.com/broccoliboy --> #7543 (comment)
works in my case too, but ideally it is not needed.

Stack traceback and/or browser JavaScript console output

Screenshots or screencasts of the bug in action

Image
Example animation is from a jupyter lab notebook.

  • I may be interested in making a pull request to address this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant