bug: DataTable2 is missing min_height

Abierto
#6,499 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python
Área
frontend

Línea de trabajo

Comienza localizando la implementación de DataTable2 y su documentación de API; después, reproduce en Windows la tabla con restricciones verticales descrita en el issue. Rastrea cómo se gestionan min_width y visible_vertical_scroll_bar; se considerará terminado cuando exista una opción min_height y el desplazamiento vertical funcione cuando la tabla sea más corta que el espacio disponible para su contenido.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Duplicate Check
Describe the bug

We notice with a DataTable2, a min_width attribute.

Per the DataTabe2 documentation:

min_width - Minimum table width before horizontal scrolling kicks in.

We notice when using the min_width, that a horizontal scrollbar appears if both the DataTable2 length size falls below the min_width threshold and the visible_horizontal_scroll_bar attribute is set to true.

Image

We also notice that DataTable2 has a visible_vertical_scroll_bar attribute, which like the visible_horizontal_scroll_bar attribute displays a vertical scrollbar (presumably if the DataTable2 height size falls below some threshold).

We notice in the DataTable2 API documentation:

https://flet-dev.github.io/flet-datatable2/datatable2/#flet_datatable2.datatable2.DataTable2.vertical_lines

...that there's a min_width attribute, but no min_height attribute.

Because of that, when shrinking a table (vertically) we notice no scrollbar:

Image

This is a problem, as without a scrollbar, the only way to view the other rows (that are hidden by the vertical shrinking of the window) in the DataTable2 is to maximize the DataTable2 window (rather than use a scrollbar).

Nelson

Code sample
Code
[Paste your code here]
To reproduce

Please see issue description.

Expected behavior

No response

Screenshots / Videos
Captures

[Upload media here]

Operating System

Windows

Operating system details

Windows 11 Professional

Flet version

0.84.0

Regression

No, it isn't

Suggestions

No response

Logs
Logs
[Paste your logs here]
Additional details

No response

Lenguaje dominante
Python
Estrellas
17.5k
Forks
740
Merge medio
1 d 15 h
PR fusionados (30 d)
65

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de flet-dev/flet

Todos los issues de flet-dev/flet

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.