Forráskód Böngészése

HUE-7633 [dashboard] Resizing a Gridster widget should resize its content too

Enrico Berti 8 éve
szülő
commit
e7590853db

A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue.css


A különbségek nem kerülnek megjelenítésre, a fájl túl nagy
+ 0 - 0
desktop/core/src/desktop/static/desktop/css/hue3-extra.css


+ 1 - 1
desktop/core/src/desktop/static/desktop/less/components/hue-gridster.less

@@ -22,7 +22,7 @@
     list-style-type: none;
     & > li {
       border: 1px solid @cui-gray-200;
-      background: @cui-gray-050 !important;
+      background: @cui-white !important;
       overflow: hidden;
     }
   }

+ 2 - 7
desktop/libs/dashboard/src/dashboard/templates/common_search.mako

@@ -3620,16 +3620,11 @@ $(document).ready(function () {
     resize: {
       enabled: true,
       start: function (event, ui, $widget) {
-        if ($widget.find('.card-widget').length > 0) {
-          $widget.find('.card-widget').hide();
-        }
+        $widget.find('.card-widget').hide();
       },
       stop: function (event, ui, $widget) {
         huePubSub.publish('resize.plotly.chart');
-        if ($widget.find('.card-widget').length > 0) {
-          $widget.find('.card-widget').show();
-          $widget.find('.card-widget').height($widget.height());
-        }
+        $widget.find('.card-widget').height($widget.height()).show();
       },
     }
   });

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott