giu icon indicating copy to clipboard operation
giu copied to clipboard

[bug] Stuttering glitch appears when rendering table borders

Open valazodev opened this issue 2 years ago • 1 comments

What happend?

When I create a Table and display it, ocasionally an underscore-like stuttering glitch appears on screen, specifically on the upper and lower borders of each row. This also happens when I run the demo on master/examples/widgets/widgets.go.

01 02

Video footage: https://github.com/AllenDang/giu/assets/57024749/445a2bee-6bcd-4e05-87a6-777356eaa6de

It reminds me of a console cursor, writing text to screen very rapidly and swinging from one side of the screen to the other, but it only happens when I move the mouse around, if I stop moving it the glitch disappears completely.

I've done some tests and it seems Table is not the problem (I removed tables from the demo, but the glitch still remains), but using tables is the easiest way to reproduce the bug.

Code example

main.go
package main

import (
	g "github.com/AllenDang/giu"
)

func main() {
	window := g.NewMasterWindow("Test", 640, 480, 0)
	window.Run(func() {
		g.SingleWindow().Layout(
			g.Table().Columns(
				g.TableColumn("Column"),
			).Rows(
				g.TableRow(
					g.Label("Value"),
				),
			),
		)
	})
}

To Reproduce

Run the code in the example, or the code on master/examples/widgets/widgets.go

Version

(latest)

OS

Windows 11

valazodev avatar Aug 07 '23 23:08 valazodev

oops, sorry for a bit late reply. @valazodev could you check if this still happens on v0.8.1?

gucio321 avatar Jul 10 '24 12:07 gucio321

lmk if you still have a problem

gucio321 avatar Nov 06 '24 08:11 gucio321