Red Hat Bugzilla – Bug 1268455
[RFE] support auto-shrinking table columns
Last modified: 2017-11-30 16:13:37 EST
Created attachment 1079510 [details]
screenshot with inspector
Description of problem:
Most of the tables (or more precisely, "tables" because column widths are defined per-row(group), not for whole table) have "feature" of having lots of unused horizontal space (in attached screenshot). In some tables, even Full HD resolution is not wide enough to display the table (screenshot 2). OTOH when all the fixed column width definitions are removed using Inspector, the content fits in less than 1500px, aka about 2/3 of currently needed horizontal area (screenshot 3) although the realistic size would be somewhat wider in order to look nice...
Tables in webadmin should be reimplemented using real tables so that all the info in the table is useful (visible) without compromising aesthetics.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. diplay wide tables in webadmin using not-so-wide browser window
tables overflow the window but lots of space within cells is absolutely empty
table cells have just enough padding so they don't look cramped
Created attachment 1079519 [details]
table overflowing on FullHD monitor
Created attachment 1079520 [details]
table fitting in < 1500px window after deletion of fixed width definitions
tables in the UI should be based on PatternFly tables.
We've switched the table widget to a GWT DataGrid. I don't see us ever switching to the PatternFly datatable while we're still using GWT in webadmin.
We could implement some kind of "shrink columns to minimum" feature. That could be done globally, or by perhaps double-clicking on the column border (similar to a spreadsheet).
(In reply to Greg Sheremeta from comment #4)
> We've switched the table widget to a GWT DataGrid. I don't see us ever
> switching to the PatternFly datatable while we're still using GWT in
Using native JS (non-GWT) solution would require GWT/JS interop (added code complexity) and make it harder to debug potential issues (due to GWT centered around Java).
Even if we justify the above, we'd still need to keep supporting existing features like column resizing and column control (toggle visibility + swap position) while preserving existing look & feel. It's not impossible , just more research & work compared to existing GWT solution.
Link to PatternFly table view, for reference: https://www.patternfly.org/pattern-library/content-views/table-view/#/code
*** This bug has been marked as a duplicate of bug 1020167 ***