-
Notifications
You must be signed in to change notification settings - Fork 984
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Summary Fixes #9803 --the height of the banner was cutting off banner messages spanning multiple lines ## Fixes Due to the animation of the view surrounding the banner text, calculate the banner height, then re-render the banner with the updated height. ## Details Render a view that wraps not only the message banner itself, but also a hidden (0-opacity and absolutely positioned) view with the banner text that calculates the height of the banner during the `on-layout` event. The banner height calculation causes the reagent atom value change to re-render the banner view with the udpated height. ## Notes 1. There is an animation on the message banner. The "out" animation (ie when the banner is in the process of disappearing) seems to work correctly. However, there did not seem to be an "in" animation. I'm fairly confident these changes did not break any existing animations, however it's worth noting this so that others who are more familiar with the existing codebase may be in a better place to say otherwise. 2. Testing during changes was done by dispatching the `network-info-changed` event like so: ``` (re-frame/dispatch [::network-info-changed {:isConnected false}]) ``` Co-authored-by: Pascal Precht <pascal@status.im> Co-authored-by: Eric Dvorsak <eric@status.im>
- Loading branch information
3 people
committed
Apr 20, 2020
1 parent
fee6864
commit f168515
Showing
1 changed file
with
130 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters