Skip to content

hide ani gif unless we have one#7879

Merged
Bjvanminnen merged 1 commit into
stagingfrom
hideAniGif
Apr 14, 2016
Merged

hide ani gif unless we have one#7879
Bjvanminnen merged 1 commit into
stagingfrom
hideAniGif

Conversation

@Bjvanminnen

@Bjvanminnen Bjvanminnen commented Apr 14, 2016

Copy link
Copy Markdown
Contributor

Chrome on windows was displaying a small, empty scroll box when topInstructions=true.

Previously we would always call the code in configureAndShowInstructions_ and either hide the wrapper, or leave it visible. However, now when topInstructions is true, we don't call configureAndShowInstructions_ and it never gets hidden.

One option would be to move this portion of the code out of configureAndShowInstructions_, but it seemed to make more sense to me to hide by default, and unhide when needed. Long term, the React version should just declaratively hide/show based on state.

Tested App Lab with and without instructions, and then also tested non-applab levels with and without anigifs.

@islemaster

Copy link
Copy Markdown
Contributor

LGTM.

@Bjvanminnen Bjvanminnen merged commit 2c7e988 into staging Apr 14, 2016
@Bjvanminnen Bjvanminnen deleted the hideAniGif branch April 14, 2016 20:23
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