Skip to content

Fixed Flyout Scrollbars Not Being Repositioned on Window Resize#2281

Merged
rachel-fenichel merged 1 commit into
RaspberryPiFoundation:developfrom
BeksOmega:fixes/FlyoutScrollbarAnchors
Feb 11, 2019
Merged

Fixed Flyout Scrollbars Not Being Repositioned on Window Resize#2281
rachel-fenichel merged 1 commit into
RaspberryPiFoundation:developfrom
BeksOmega:fixes/FlyoutScrollbarAnchors

Conversation

@BeksOmega
Copy link
Copy Markdown
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide

The details

Resolves

#1445

Proposed Changes

Adds an extra call to setPosition.

Reason for Changes

Resize would fail because the metrics were the same. This means setPosition would never get called so the scrollbar would stay in the same position.

Test Coverage

setposition_multiplayground
setposition_playground_ltr
setposition_playground_rtl

Tested on:

  • Desktop Chrome

Additional Information

N/A

@BeksOmega BeksOmega force-pushed the fixes/FlyoutScrollbarAnchors branch from 3548c01 to 627c521 Compare February 10, 2019 04:30
@rachel-fenichel
Copy link
Copy Markdown
Collaborator

LGTM, though we really need a better way of figuring out when metrics updates actually matter, and when scrollbars need to update.

@rachel-fenichel rachel-fenichel merged commit 077bd96 into RaspberryPiFoundation:develop Feb 11, 2019
@rachel-fenichel rachel-fenichel mentioned this pull request Feb 12, 2019
@BeksOmega BeksOmega deleted the fixes/FlyoutScrollbarAnchors branch February 16, 2019 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants