helge17 / tuxguitar

Improve TuxGuitar and provide builds
Other
489 stars 43 forks source link

Flags on track table header are not refreshed unless the mouse move on the header line #531

Closed vincentT closed 1 month ago

vincentT commented 2 months ago

When scrolling horizontally in the track table, flags in the header are not refreshed unless the mouse move on the header line. I'm on Windows, tested on master Adding this at the end of TGTableRow init method works but probably not optimal

this.painter.addPaintListener(new UIPaintListener() {
    @Override
    public void onPaint(UIPaintEvent event) {
        table.getColumnCanvas().getControl().redraw();
    }
});
guiv42 commented 2 months ago

It's a bit surprising, this behavior is not reproduced in Linux environment (TuxGuitar 1.6.4, Linux openSuse tumbleweed)

guiv42 commented 1 month ago

That should be OK now

vincentT commented 1 month ago

Indeed 👍 , tested it on master

guiv42 commented 1 month ago

thanks for the test!

vincentT commented 1 month ago

Thanks for the fix !