lablup / backend.ai-webui

Backend.AI Web UI for web / desktop app (Windows/Linux/macOS). Backend.AI Web UI provides a convenient environment for users, while allowing various commands to be executed without CLI. It also provides some visual features that are not provided by the CLI, such as dashboards and statistics.
https://www.backend.ai
GNU Lesser General Public License v3.0
93 stars 66 forks source link

bug: session list grid resized when data is refetched #2390

Closed ironAiken2 closed 1 month ago

ironAiken2 commented 1 month ago

This PR Resolves #2389 Issue.

Why the bug occurred?

The auto-width property of vaadin grid scans all cells in that column and determines the column width to fit the widest cell. If the column item data is updated, the column will be resized with the new data, so the user-adjusted column width will be reset and the focus will be on the reset column.

Feature

Removed the auto-width attribute and fixed it to not recalculate the width even if the data is updated by specifying the width directly.

Checklist: (if applicable)

ironAiken2 commented 1 month ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ironAiken2 and the rest of your teammates on Graphite Graphite