Page MenuHomePhabricator

Flip guider in opposite direction if it falls outside the viewport
Closed, ResolvedPublic

Description

Author: swalling

Description:
Similar to the issue we ran in to at bug 44635, the single step GettingStarted tour can easily fall outside of your view if you have a browser that is ~1024x768 or smaller.

We could temporarily solve this problem by repositioning the guider on top, or by moving it automatically, but I think the best solution is to flip these particular guiders from right to left if they fall outside the viewport.


Version: unspecified
Severity: major

Details

Reference
bz45621

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:39 AM
bzimport set Reference to bz45621.

swalling wrote:

Example of issue

Attached:

Screen_Shot_2013-03-01_at_2.32.18_PM.png (882×1 px, 189 KB)

The change to Guiders is https://gerrit.wikimedia.org/r/#/c/53303/ . It adds an option to flip guiders horizontally and/or vertically (as needed for a particular guider) when it would otherwise go above the top, left of the left side, or right of the right side.

There is also a utility method for doing the actual flip, which will be reused by the RTL code.

See bug 46137 for an edge case issue with the implementation.