[MGNLUI-7048] minimumWidthFromContent is false by default causing columns in crowded views to disappear unexpectely Created: 25/Feb/22  Updated: 09/May/23  Resolved: 15/Mar/23

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Rico Jansen Assignee: Adrian Brooks
Resolution: Done Votes: 0
Labels: VN-Analysis
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 0.25d Time Spent: 0.25d
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File image-2022-02-25-13-48-15-329.png    
Issue Links:
Relates
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7930 DOC: draft Documentation Task Completed Adrian Brooks  
MGNLUI-7931 DOC: review + PM Documentation Task Closed Adrian Brooks  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Release notes required:
Yes
Date of First Response:
Epic Link: Nucleus Quality Maintenance
Sprint: Nucleus 32
Story Points: 0.5
Team: Nucleus
Work Started:

 Description   

Steps to reproduce

  1. Open an incognito window.
  2. Reduce size of window so not all columns of the pages app would fit (ie 300 pixels)
  3. Open pages app
  4. Notice columns are too small to fit content.

This happens even more quickly when dealing with content apps with a lot of columns. Those wil make the jrcName column completely disappear in the treeview. Unless one specifies minimumWidthFromContent: true on the column

Also checking the code of info.magnolia.ui.contentapp.configuration.column.ConfiguredColumnDefinition shows that the value is by default false.

https://docs.magnolia-cms.com/product-docs/6.2/Apps/App-configuration/Column-definition.html claims minimumWidthFromContent is true by default which is incorrect.

Workaround

explicitly specify: minimumWidthFromContent: true on columns that need to be visible

 



 Comments   
Comment by Quach Hao Thien [ 02/Mar/23 ]

minimumWidthFromContent: true in info.magnolia.ui.contentapp.configuration.column.ConfiguredColumnDefinition

This will affect to all columns, not all column and column's content should be visible as full width and it will make an unnecessary horizontal scrollbar to the grid => bad UX

Plus, the property is set false by default, so I think better solution is to align the docu with the implementation.

Generated at Mon Feb 12 09:42:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.