Page MenuHomePhabricator

Opening an inspector at the bottom of the viewport causes it to collapse
Closed, ResolvedPublic

Description

With your cursor at the bottom of the viewport:

image.png (144×296 px, 7 KB)

...open the link inspector (ctrl+k)
image.png (125×437 px, 6 KB)

Instead of scrolling the whole page into view (which happens in VE article editing), the inspector height is collapsed

On scrolling down the inspector is still broken:

image.png (204×466 px, 8 KB)

The same bug is present in StructuredDiscussions/Flow

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

The problem here is that the desktop context popup is getting clipped (it is an OO.ui.mixin.ClippableElement).

I said this isn't a problem in VE article mode, but there it usually works by accident. While we are calculating clipping, the context is positioned in the top of the surface, which in article mode is usually far away from the bottom of the viewport, so OOUI decides no clipping is necessary:

image.png (421×671 px, 99 KB)
paused in debugger while computing clipping
note here the selected word is at the bottom of the screen

It is therefore possible to reproduce this bug in article mode by making the screen very short:

image.png (238×480 px, 32 KB)

Change 774511 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Fix height restriction calculation of desktop context

https://gerrit.wikimedia.org/r/774511

This appears to have been caused by T114614 (cc @DLynch) in 2015, so it's technically a regression.

kostajh subscribed.

This appears to have been caused by T114614 (cc @DLynch) in 2015, so it's technically a regression.

Adding Regression, then.

Growth-Team could review a patch for StructuredDiscussions but otherwise it's not something we can prioritize with the other work we have going on currently.

@kostajh Unless there's something parallel going on inside Flow, I think the fix in VE should cover it as well.

DLynch edited projects, added Editing-team (Kanban Board); removed Editing-team.
DLynch moved this task from Incoming to QA on the Editing-team (Kanban Board) board.
DLynch added a project: Editing QA.

Change 774511 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] Follow-up I534ce003d: Fix height restriction calculation of desktop context

https://gerrit.wikimedia.org/r/774511

Change 769113 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (38b8213b5)

https://gerrit.wikimedia.org/r/769113

Change 769113 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (38b8213b5)

https://gerrit.wikimedia.org/r/769113

ppelberg claimed this task.