You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description A clear and concise description of what the bug is.
It appears there's a strange interaction between height and the number of data entries in the table.
Expected behavior What you expected to happen instead.
I'd expect the table to set empty rows if the amount of data cannot fill the height.
Reproduction Code to reproduce the behavior (optional).
import{Tui}from"https://deno.land/x/tui@2.1.4/mod.ts";import{Table}from"https://deno.land/x/tui@2.1.4/src/components/mod.ts";import{crayon}from"https://deno.land/x/crayon@3.3.3/mod.ts";consttui=newTui({style: crayon.bgBlack,// Make background blackrefreshRate: 1000/60,// Run in 60FPS});tui.dispatch();// Close Tui on CTRL+Ctui.run();constdata=[["0","Data 0"],["1","Data 1"],]newTable({parent: tui,theme: {base: crayon.bgBlack.white,frame: {base: crayon.bgBlack},header: {base: crayon.bgBlack.bold.lightBlue},selectedRow: {base: crayon.bold.bgBlue.white,focused: crayon.bold.bgLightBlue.white,active: crayon.bold.bgMagenta.black,},},rectangle: {column: 1,row: 1,height: 10,// NOTE: If I change this to data.length + 4, it appears to be pretty robust. But if the height >= data.length + 5; you'll see this error. So for example, 1, 2, etc all the way to 6 is fine for this example. But if you make it 7+, it will throw this error.},headers: [{title: "ID"},{title: "Name"}],
data,charMap: "rounded",zIndex: 0,});
Screenshots Screenshots to help explain your problem (optional).
Hi!
Thank you for the bug report.
I've fixed it, you should be able to use version 2.1.5 from now on without this issue happening.
In case issue persists, feel free to reopen this issue!
Bug description A clear and concise description of what the bug is.
It appears there's a strange interaction between
height
and the number of data entries in the table.Expected behavior What you expected to happen instead.
I'd expect the table to set empty rows if the amount of data cannot fill the height.
Reproduction Code to reproduce the behavior (optional).
Screenshots Screenshots to help explain your problem (optional).
Information (please complete)
The text was updated successfully, but these errors were encountered: