-
-
Notifications
You must be signed in to change notification settings - Fork 44
Description
I'm submitting a bug report
- Library Version:
1.0.0-beta.1.0.2
Please tell us about your environment:
-
Operating System:
OSX 10.9|iOS|Windows 10 -
Node Version:
5.5.0 -
NPM Version:
3.3.2 -
JSPM OR Webpack AND Version
JSPM 0.16.39 -
Browser:
all -
Language:
ESNext
Current behavior:
When page loads, the virtual repeat element is contained inside a div that is hidden. Later, when that div is revealed, the virtual repeat elements do not show except for the first one (this is due to how the element heights are calculated).
Expected/desired behavior:
- What is the expected behavior?
The expected behavior is that the elements will show appropriately, despite being hidden initially. - What is the motivation / use case for changing the behavior?
Motivation/use case for this scenario is in the event of a mobile first design, where certain panels are hidden on mobile, and the panels are revealed depending on where you navigate to (where as on desktop all the panels are visible).
What probably needs to happen to resolve this is figure out a different way to calculate the initial heights of elements. Currently, it depends on those elements being visible and their heights being calculate-able when everything is initialized. When this isn't the case, or when views change size, the calculate heights function is not fired again, and therefore nothing changes in the view.