Coder Social home page Coder Social logo

Comments (5)

weierophinney avatar weierophinney commented on June 5, 2024

I don't see any offsetWidth being used? Doesn't look like this is the affected code?


Originally posted by @Ocramius at zendframework/zend-developer-tools#194 (comment)

from laminas-developer-tools.

weierophinney avatar weierophinney commented on June 5, 2024

Hi @Ocramius!

I can see the error in this code point:

<!-- START Zend Developer Toolbar JavaScript -->
<script type="text/javascript">
    <!--
    (function() {

    /**
     * @param {Cookie} cookie
     * @returns {Toolbar}
     * @constructor
     */
    var Toolbar = function(cookie) {
        /** @type {Toolbar} */
        var self = this;
        /** @type {HTMLElement} */
        var container = document.getElementById("zend-developer-toolbar");
        /** @type {number} */
        var width = container.offsetWidth; //<------- Uncaught TypeError: Cannot read property 'offsetWidth' of null

I tried to reproduce with a new application using the zf2 skeleton but in this case I missed the toolbar with the example code.
You need to use a downloadable link to get the error as I pointed earlier.

Let me know if you need some more details.


Originally posted by @quintanilhar at zendframework/zend-developer-tools#194 (comment)

from laminas-developer-tools.

weierophinney avatar weierophinney commented on June 5, 2024

You need to use a downloadable link

I don't follow this bit, specifically...


Originally posted by @Ocramius at zendframework/zend-developer-tools#194 (comment)

from laminas-developer-tools.

weierophinney avatar weierophinney commented on June 5, 2024

@Ocramius, can you reproduce the error?


Originally posted by @quintanilhar at zendframework/zend-developer-tools#194 (comment)

from laminas-developer-tools.

samsonasik avatar samsonasik commented on June 5, 2024

I can't reproduce with latest laminas-developer-tools. I follow your location.assign() usage and can't reproduce the error.

Please re-create issue if problem persist with steps to reproduce. I'm closing it.

from laminas-developer-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.