Title: Closed dashboard widget causing JavaScript error (possible fix enclosed)
Last modified: August 30, 2016

---

# Closed dashboard widget causing JavaScript error (possible fix enclosed)

 *  [silb3r](https://wordpress.org/support/users/silb3r/)
 * (@silb3r)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/closed-dashboard-widget-causing-javascript-error-possible-fix-enclosed/)
 * If I close/collapse the dashboard widget accordion then the wpMandrill script
   call to jQuery Flot throws an error which causes other dashboard widgets to break
   and not render.
 * Steps to reproduce:
 * 1. Login to admin dashboard with wpMandrill installed and active
    2. Open JavaScript
   console 3. Close/collapse wpMandrill’s admin dashboard accordion 4. Refresh page
   5. Console error expected: `Uncaught Invalid dimensions for plot, width = 0, 
   height = 400 jquery.flot.js:711`
 * [In `wpmandrill.php` @ line 1212](https://github.com/wp-plugins/wpmandrill/blob/263f330c7cb1583e844ed1d32df96b13bd280379/wpmandrill.php#L1212)
   adding an inline style of `width:100%` to `#filtered_recent` appears to alleviate
   the issue.
 * Please update the plugin accordingly to mitigate the chances this plugin breaks
   other plugins.
 * [https://wordpress.org/plugins/wpmandrill/](https://wordpress.org/plugins/wpmandrill/)

The topic ‘Closed dashboard widget causing JavaScript error (possible fix enclosed)’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpmandrill_171717.svg)
 * [wpMandrill](https://wordpress.org/plugins/wpmandrill/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmandrill/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmandrill/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmandrill/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmandrill/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmandrill/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [silb3r](https://wordpress.org/support/users/silb3r/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/closed-dashboard-widget-causing-javascript-error-possible-fix-enclosed/)
 * Status: not resolved