[MGNLUI-3109] In the page editor, a selected component should always remain within view Created: 19/Aug/14  Updated: 30/Nov/15  Resolved: 28/Sep/14

Status: Closed
Project: Magnolia UI
Component/s: page editor
Affects Version/s: 5.3.2
Fix Version/s: 5.2.10, 5.3.4

Type: Bug Priority: Major
Reporter: Andreas Weder Assignee: Aleksandr Pchelintcev
Resolution: Fixed Votes: 0
Labels: next, pain-point, support, ux
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
dependency
relation
is related to MGNLUI-3179 Preserve vertical scroll position of ... Closed
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   

The following only happens, if you have a longer list of components within the same area.

If the area is not selected, it doesn't show its own edit bar nor the edit bars of any of its components. If you now select a components towards the end of the list of components, all these edit bars appear at once. This causes the selected component to be pushed down and out of view.

The desired behavior is that the selected component should remain visible.

This fix resolves the problem on desktop browsers.



 Comments   
Comment by Christopher Zimmermann [ 29/Sep/14 ]

Code looks fine, but please remove comment to reference google on getScrollParent:

But fix is not working properly in firefox.
My test case was adding several teasers to the teasers area on /demo-project/about

Comment by Christopher Zimmermann [ 30/Sep/14 ]

Not working on iPad (iOS 7) - both Safari and Chrome

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