[MGNLCDEP-4] Different layout for content reference list Created: 25/Nov/10  Updated: 18/Jan/11  Resolved: 16/Dec/10

Status: Closed
Project: Content Dependencies
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.0.2

Type: Bug Priority: Minor
Reporter: Andreas Weder Assignee: Federico Grilli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Bildschirmfoto 2010-11-25 um 15.06.07.png     PNG File Bildschirmfoto 2010-11-25 um 15.23.19.png    
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

If you click on the content references tab in the dialog showing the details on a work item, the list of references is shown indented. Even for small sites with actually short node paths, these already wrap to a new line. We should move the titles to the left to leave more room for the paths (see second screenshot), if possible without too much effort, even if the user can actually resize the window.



 Comments   
Comment by Federico Grilli [ 25/Nov/10 ]

That space should be for labels and it's added automatically (at least I guess) by the default dialog control implementation. Don't know how easy it is to get rid of it.

Comment by Federico Grilli [ 16/Dec/10 ]

The whole thing is implemented as a table. That width is added automatically when the dialog box model is two cols wide. It happens in info.magnolia.cms.gui.dialog.DialogTab at line 77 by using the <col width="200px"> tag. Then in info.magnolia.cms.gui.dialog.DialogBox#drawHtmlPre(..), in case of a dialog box with two cols, a 1% width is given to the left-hand side <td> (where one typically has a label) and a 100% width (yes 100%) to the right-hand side (where one typically has a control). Moreover, I noticed that, at least on latest FF and Safari, those widths are completely ignored. Anyway, I'm going to solve this issue by setting by default the control for dependencies as being 1 col wide. I would not venture in changing the code building the dialog tab and the dialog box, although it looks very suspicious, lest of screwing up most Magnolia dialogs out there in the vast world.

Generated at Mon Feb 12 00:11:36 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.