Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

on-core-animated-pages-transition-prepare not firing/ #56

@Nas-r

Description

@Nas-r

Morris.js chart doesn't display properly within Polymer core-animated-pages > section > core-animated-pages > section > card > div.

It works fine if I resize the window, the chart just displays weird when it's first injected into the page. I'm guessing it's not grabbing the right div dimensions.

So I've been trying to use core-animated-pages-transition-prepare. I've attempted the following:

<core-animated-pages id="form1" on-core-animated-pages-transition-prepare="onPrepare();" selected="0" transitions="slide-from-right" cross-fade>     

var form1 = document.getElementById("form1");
function onPrepare() {
        if (form1.selected==6) {
            gBar();
        } ...etc

I've also tried things like:

document.getElementById("form1").addEventListener('core-animated-pages-transition-prepare', function() {     
  alert('Hi');
});

and

document.getElementById("form1").on('core-animated-pages-transition-prepare', function() {     
  alert('Hi');
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions