Skip to content

Doesn't render correctly if hidden during loading. #259

@zmoshansky

Description

@zmoshansky

I have an SPA with roughly the following structure:

  • neon-animated-pages
    • neon-animatable web component
      • paper-card
        • google-map

If the google-map page is not selected while loading, it fails to render correctly.
screenshot from 2016-02-15 16-34-03

By sheer luck I resized the window discovering that it fixed the issue.
screenshot from 2016-02-15 16-36-29

Possible Workarounds

(active is a property that is changed to true when the page is selected).

<template is="dom-if" if="[[active]]">
  <google-map latitude="{{_lat}}" longitude="{{_lng}}" fit-to-markers single-info-window>
  ...

or

_activeChanged: function(active) {
  this.$$('google-map').resize();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions