thomaslindstrom / color-picker

A color picker for the Atom Editor. Right click a color and select color picker to open it.
MIT License
246 stars 50 forks source link

Uncaught TypeError: Cannot read property 'offsetWidth' of null #212

Open so-hard opened 7 years ago

so-hard commented 7 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.15.0 ia32 Electron: 1.3.13 OS: Unknown Windows version Thrown From: color-picker package 2.2.5

Stack Trace

Uncaught TypeError: Cannot read property 'offsetWidth' of null

At C:\Users\wz\.atom\packages\color-picker\lib\ColorPicker-view.coffee:388

TypeError: Cannot read property 'offsetWidth' of null
    at /packages/color-picker/lib/ColorPicker-view.coffee:388:43
    at Object.open (/packages/color-picker/lib/ColorPicker-view.coffee:381:20)
    at /packages/color-picker/lib/ColorPicker.coffee:47:23)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:259:29)
    at /app.asar/src/command-registry.js:3:59
    at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
    at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
    at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
    at /app.asar/src/window-event-handler.js:3:59)

Commands

     -0:08.8.0 color-picker:open (input.hidden-input)

Non-Core Packages

activate-power-mode 1.1.0 
atom-material-ui 1.3.8 
color-picker 2.2.5 
emmet 2.4.3 
file-icons 1.7.25 
indent-guide-improved 1.4.11 
javascript-snippets 1.2.1 
minimap 4.25.6 
minimap-highlight-selected 4.4.0 
monokai-flat 1.0.1 
open-in-browsers 0.0.19 
pigments 0.38.0 
sync-settings 0.8.1 
webbox-color 0.5.9