[MGNLUI-6955] Switching Languages On Dialogs Changes focus in The Current Window Created: 19/Nov/21  Updated: 03/Jul/23  Resolved: 16/Dec/22

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

Type: Improvement Priority: Neutral
Reporter: Julian Nodarse Assignee: Sang Ngo Huu
Resolution: Fixed Votes: 0
Labels: None
Σ Remaining Estimate: Not Specified Remaining Estimate: Not Specified
Σ Time Spent: 8.25d Time Spent: Not Specified
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: File Screen Recording 2022-12-16 at 14.02.42.mov    
Issue Links:
Cloners
is cloned by MGNLUI-7666 Nested fields in multi field and comp... Open
Problem/Incident
causality
is causing MGNLUI-8154 When I open a story, it scrolls down ... Closed
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLUI-7653 Implementation Sub-task Completed Sang Ngo Huu  
MGNLUI-7654 Review Sub-task Completed Rabie Hayoun  
MGNLUI-7655 Pre-int QA (6.2) Sub-task Completed Adam Siska  
MGNLUI-7656 QA Sub-task Closed Antonín Juran  
MGNLUI-7667 Pre-int QA (master) Sub-task Completed Adam Siska  
MGNLUI-7680 Check server traffic to know it cause... Sub-task Closed Sang Ngo Huu  
MGNLUI-7681 Check UI tests failure Sub-task Completed Sang Ngo Huu  
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)
Release notes required:
Yes
Date of First Response:
Epic Link: Maintenance of vaadin8 framework
Sprint: Nucleus 24, Nucleus 25
Story Points: 5
Team: Nucleus
Work Started:

 Description   

1 - Open or create a dialog that uses i18n and contains several fields. Enough fields so that you can scroll down on the dialog
2 - Scroll to the bottom of this dialog
3 - Change languages

Expected Result
The position that you were in on the dialog stays the same and does not move when you change languages.

Actual Result
The position that you were in gets reset to the top of the dialog.



 Comments   
Comment by Roman Kovařík [ 13/Oct/22 ]

Provide extension or implement more in info.magnolia.ui.editor.FormView#displayLocalisedVersion 

I'd prefer keeping the logic in TabbedLayoutProducer/TabbedLayoutContext. There we could add focus listeners to fields to __ remember the last focused field index. 

Otherwise the discovery looks legit

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