pandastable icon indicating copy to clipboard operation
pandastable copied to clipboard

ColorByValue

Open vix1one opened this issue 5 years ago • 9 comments

Hi, when I set the column colour by value if The table is very long and I need to scroll down with the mouse, the colours are wrongly shown! any idea?

Ps SUPER script, Thanks!!!

vix1one avatar Jun 04 '20 15:06 vix1one

Basically the colour cell index doesn't scale with the scroll and remains fixed on the window. this is the first view.

image

and this is when I scroll image

I scrolled six elements, but the colours didn't

vix1one avatar Jun 04 '20 16:06 vix1one

Probably I have to fix something in core.py. I guess in the mouse_wheel definition. But I cannot fix the problem

def mouse_wheel(self, event): """Handle mouse wheel scroll for windows""" if event.num == 5 or event.delta == -120: event.widget.yview_scroll(1, UNITS) self.rowheader.yview_scroll(1, UNITS) if event.num == 4 or event.delta == 120: if self.canvasy(0) < 0: return event.widget.yview_scroll(-1, UNITS) self.rowheader.yview_scroll(-1, UNITS) self.redraw()
self.multiplecollist = [4] #set the selected columns self.redrawVisible() return

vix1one avatar Jun 04 '20 16:06 vix1one

Is there an error message appearing when you try to scroll.

dmnfarrell avatar Jun 22 '20 13:06 dmnfarrell

no error at all

vix1one avatar Jun 22 '20 15:06 vix1one

I have the same bug when scrolling my table

Rafaelh531 avatar Apr 20 '22 13:04 Rafaelh531

I can't replicate this. It must be related to the specifics of your table. I'd need more details.

dmnfarrell avatar Apr 20 '22 20:04 dmnfarrell

Its just a very large dataframe where in a specific column i have some cells painted red, when i scroll down the marked area doesn't scroll with it, just stay in place and marks new cells

Rafaelh531 avatar Apr 20 '22 20:04 Rafaelh531

how big is very large?

dmnfarrell avatar Apr 20 '22 20:04 dmnfarrell

4000x150

Rafaelh531 avatar Apr 22 '22 12:04 Rafaelh531