Opened 8 years ago
Closed 8 years ago
#1004 closed defect (fixed)
VIewDockX Plot sometimes gives Uncaught Error
Reported by: | Elaine Meng | Owned by: | Conrad Huang |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Surface/Binding Analysis | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
Probably when my overall window is rather small to start with, clicking the Plot button on the ViewDockX dialog sends errors to the Log such as
JS console(viewdockx_plot.js:71:error): Uncaught TypeError: Cannot read property 'setData' of null
JS console(jquery-3.2.1.min.js:2:error): Uncaught Error: Invalid dimensions for plot, width = 293, height = 0
At least sometimes when I get this error the plot isn't shown except as a weird little window off in the corner (screen shot attached).
Clicking Plot does not always give this error, just sometimes. I haven't gotten the error from clicking Graph.
Attachments (1)
Change History (2)
by , 8 years ago
Attachment: | nullplot.png added |
---|
comment:1 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
I think this is fixed by [changeset 5de467abd].
When the window gets too short, the space allotted to the chart/plot div gets a zero height, which flot really does not like. Fixed by adding min-height css to the div. No min-width is needed because the control div is never zero-width.