Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Datagrid: Column size issues #1818

Closed
claudenbach opened this issue Mar 19, 2019 · 17 comments · Fixed by #3224
Closed

Datagrid: Column size issues #1818

claudenbach opened this issue Mar 19, 2019 · 17 comments · Fixed by #3224
Assignees
Labels
focus: datagrid Main focus is Datagrid priority: high team: landmark For Landmark issues type: bug 🐛 [5] Velocity rating (Fibonacci)

Comments

@claudenbach
Copy link
Contributor

Describe the bug
A datagrid is sizing the last column to wide. Getting lots of push back in Landmark that the columns are not sized correctly. The last column (typically contains the least significant information) is sized much larger than the preceding columns.

To Reproduce
Steps to reproduce the behavior:

  1. Using the attached example-column-sizing.html
  2. Notice the size of the last column that contains a drop-down select

Expected behavior
Improve the layout of the column sizes

Is related to:
#1168

@claudenbach
Copy link
Contributor Author

Git1818.zip

@claudenbach
Copy link
Contributor Author

image

@tmcconechy tmcconechy added this to the Collaborator: Landmark milestone Mar 19, 2019
@tmcconechy
Copy link
Member

How would you propose we improve this? You already have a couple options BTW

  1. You can pick which column will stretch by setting http://master-enterprise.demo.design.infor.com/components/datagrid/test-columns-stretch-column.html (the one with longer/more important info)

  2. You can set all columns to equal size http://4110-enterprise.demo.design.infor.com/components/datagrid/test-columns-equal.html (this option is broken at the moment i can see on Master: http://master-enterprise.demo.design.infor.com/components/datagrid/test-columns-equal.html )

@claudenbach
Copy link
Contributor Author

Thanks Tim.

Let me confer with Andrew on this.

@tmcconechy
Copy link
Member

May relate to #1797

@tmcconechy
Copy link
Member

@claudenbach Did you confer with Andrew, since we do have those options seems like they would solve it. One idea is to do that automatically. For example...

  • check if a really long data column and make that the stretch column
  • check if the data is similar sized and use equal columns

Not sure how much slower that would be to figure that out. But not 100% sure what to do for this issue anymore.

@claudenbach
Copy link
Contributor Author

@lipetzan was at Infor TechEd last week. I'll confer with him when he's back in the office.

@lipetzan
Copy link
Collaborator

A few thoughts:

How about you make equal be your default vs. stretch last? - and without a new perf check for "data similar sized". Why not?

Landmark can send the stretch column, in certain cases, like when a card view, prog bar, code block or rich text is present. That makes sense to me to optimize some views.

Landmark can always set equal, but I'm wondering why that just isn't your default anyway. Also, if we send you both equal AND a stretch column, would stretch win?

@tmcconechy
Copy link
Member

Yeah thats a good idea. We can go to equals size but only when the number of columns wont horizontal scroll. I'll also review the HTML table spec again to see what it does so its hopefully similar.
It does seem to use mostly equals size.

@tmcconechy tmcconechy added [5] Velocity rating (Fibonacci) and removed [∞] Velocity rating (Fibonacci) status: on hold ⏸️ labels Apr 30, 2019
@tmcconechy tmcconechy modified the milestones: Collaborator: Landmark, Focus: Datagrid May 2, 2019
@lipetzan
Copy link
Collaborator

lipetzan commented Nov 6, 2019

How is this going @tmcconechy ?

@tmcconechy
Copy link
Member

Delayed. But it is up next. Should be primarily fixed by implementing #2825

@tmcconechy
Copy link
Member

Fixing this issue in a coming PR and added a new example http://localhost:4000/components/datagrid/test-column-sizing.html

  • the columns will now be default fill
  • and will work ok on resize

@brianjuan
Copy link

There is a weird behavior that I think is related to these changes. Please feel free to correct me if I'm wrong.
In Mac Safari and iOS browsers, the columns width became equal and cannot be resized anymore after sorting or filtering a column. Tested in http://4240-beta0-enterprise.demo.design.infor.com/components/datagrid/test-column-sizing.html

datgrid-sizes

This also happens in all datagrid example/test pages.

@brianjuan brianjuan moved this from Ready for QA (beta) to Failed QA (beta) in Enterprise 4.24.x (November 2019) Sprint (NG 6.3) Dec 12, 2019
@tmcconechy
Copy link
Member

Yes something wrong in Mac OS, will take a look.

@tmcconechy
Copy link
Member

Closing as PR will solve

@tmcconechy tmcconechy moved this from In progress to Ready for QA (rc) in Enterprise 4.24.x (November 2019) Sprint (NG 6.3) Dec 13, 2019
@janahintal
Copy link
Contributor

Issue is now resolved. Will now move to Done. Thanks!.
Re-tested in http://4240-rc0-enterprise.demo.design.infor.com/components/datagrid/test-column-sizing.html across all platform

@janahintal janahintal moved this from Ready for QA (rc) to Done in Enterprise 4.24.x (November 2019) Sprint (NG 6.3) Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus: datagrid Main focus is Datagrid priority: high team: landmark For Landmark issues type: bug 🐛 [5] Velocity rating (Fibonacci)
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

7 participants