Forums

Resolved
0 votes
I've encountered what I think is a bug. See my screenshot below.


https://dl.dropboxusercontent.com/u/4327743/Dashbord_process_viewer_bug.png


Sometimes this widget works but mostly not. I see this behaviour when using the Safari browser.
Friday, August 12 2016, 05:32 AM
Share this post:
Responses (4)
  • Accepted Answer

    Tuesday, August 23 2016, 06:15 PM - #Permalink
    Resolved
    0 votes
    The last option is the best! Are those Javascript files part of codeigniter web framework or is it written by Clearcenter?


    Ben Chambers wrote:

    Hmm...the concept of minimum width height, while a good idea, hasn't been implemented in the Dashboard widgets. Maybe I can catch that JS exception and put up a sane warning message (eg. add delete widget and add to a larger column width.

    Even better...remove dependency on column widths/bootstrap columns entirely and make each widget dragable to width you prefer. If only I wasn't a JS hack!

    B.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 22 2016, 04:49 PM - #Permalink
    Resolved
    0 votes
    Hmm...the concept of minimum width height, while a good idea, hasn't been implemented in the Dashboard widgets. Maybe I can catch that JS exception and put up a sane warning message (eg. add delete widget and add to a larger column width.

    Even better...remove dependency on column widths/bootstrap columns entirely and make each widget dragable to width you prefer. If only I wasn't a JS hack!

    B.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 12 2016, 06:21 PM - #Permalink
    Resolved
    0 votes
    Hi Ben,

    Both solutions are working. Some comment on the last solution. You need the legenda not everything in the graphic is named. Is not beter to set a minimum with for the widget?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, August 12 2016, 11:46 AM - #Permalink
    Resolved
    0 votes
    From here


    1. Make your canvas bigger
    2. Make your labels shorter
    3. Use a legend outside of the canvas using the legend.container option to specify an outside div


    I'd be interested to know if you saw the issue still if if you added the widget to a wider column layout (eg. 2 columns, instead of 3).

    Looks like having labels and a legend it superfluous. Take a look at the file /usr/clearos/themes/ClearOS-Admin/js/widgets.js

    On line 884/885, change to read:


    legend: {
    show: false,


    And refresh Webconfig...does that solve the issue too?

    B
    The reply is currently minimized Show
Your Reply