diff --git a/README.md b/README.md index e1f9af8..1b1094c 100644 --- a/README.md +++ b/README.md @@ -544,6 +544,7 @@ The following attributes are important: * `data-title` defines the widget's title on top * `data-min` and `data-max` are widget specific in this example. They are referenced inside the Coffee script file inside the widget code. * `style` can be used to specify certain CSS to make the widget look more beautiful if not already. +* `class=scrollable` allows for scrolling of crammed widgets. Works for most widgets but is mostly meant to be used with `List` and `Simplelist`. ### Dashboard Widgets diff --git a/assets/stylesheets/application.scss b/assets/stylesheets/application.scss index c2c2520..af74ec4 100644 --- a/assets/stylesheets/application.scss +++ b/assets/stylesheets/application.scss @@ -268,3 +268,16 @@ h3 { .clearfix:after { clear: both; } .clearfix { zoom: 1; } +// ---------------------------------------------------------------------------- +// Adding scrolling functionality to widgets for all browsers +// ---------------------------------------------------------------------------- +.scrollable { + overflow: hidden; +} + +.scrollable .content { + height: 100%; + overflow-y: scroll; + margin-right: -50px; + padding-right: 50px; +} diff --git a/dashboards/icinga2.erb b/dashboards/icinga2.erb index 16a2c82..aa400af 100644 --- a/dashboards/icinga2.erb +++ b/dashboards/icinga2.erb @@ -135,7 +135,7 @@ $(function() {