vaadin / vaadin/framework

Editor in Grid has odd behaviors when the column length is not wide enough

Open
#10,763 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question Stale
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

If you have a column that isn't wide enough in the Grid Editor (ComboBox, TextField, etc) then it will right align the field. Then as soon as you click in ANY field in the row it will adjust the alignment of all the fields to be left aligned (as it should've been from the start).

In other words it seems to go to the end of the line but then as soon as you click on any field in the editor it right aligns, even if it's not a field you're in.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Grid Editor behavior with a column that is too narrow for a ComboBox or TextField, then click different fields in the row and observe alignment changes. Done means fields retain the expected left alignment instead of changing alignment after another field is clicked.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.