Skip to content

When augmenting a DOM element, height is undefined #89

@KingScooty

Description

@KingScooty
<div class="test-context"></div>
var container = document.querySelectorAll('.test-context')[0];
var test = Sketch.augment(container);

As far as i'm aware, i should be able to augment an existing DOM element and manipulate said DOM element using CSS.

I seem to be getting the following error:

Cannot read property 'height' of undefined

On sketch.js 298, which looks like it's not getting the style.height correctly for DOM elements.

Am i missing a step? Or is this an error with Sketch?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions