Skip to content

content.clientHeight is always 0 #17

Description

@danielflippance

I've noticed that the following line always return zero but I can't work out why:

var y = content.clientHeight;

Tried all sort of combinations of scope.$watch, setTimeout, scope.$on('$viewContentLoaded', but the contentHeight is always zero. Html is pretty straightforward:

<div slide-toggle="#headerPanel">BTN</div>
<div id="headerPanel" class="slideable">
    <div>
        <ul>
            <li><a href="/blah">Blah</a></li>
            <li><a href="/this">This</a></li>
            <li><a href="/that">That</a></li>
        </ul>
    </div>
</div>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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