Browse Source

HUE-6995 [oozie] Set minimum width of a workflow node

Enrico Berti 8 năm trước cách đây
mục cha
commit
2b938da3ea

+ 0 - 3
apps/oozie/src/oozie/templates/editor2/workflow_editor.mako

@@ -752,9 +752,6 @@ ${ utils.submit_popup_event() }
           "width": "500px"
         }, 200, function(){
           widget.oozieExpanded(true);
-          if ($(document).width() > $(window).width()){
-            $("html, body").scrollLeft($(document).width() - $(window).width());
-          }
         });
       }
       else {

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/ko.common-dashboard.js

@@ -69,7 +69,7 @@ var Row = function (widgets, vm, columns) {
   self.columns = ko.observableArray(columns ? columns : []);
   self.columns.subscribe(function (val) {
     self.columns().forEach(function (col) {
-      col.percWidth((100 - self.columns().length * BOOTSTRAP_RATIOS.MARGIN()) / self.columns().length);
+      col.percWidth(Math.max(3, (100 - self.columns().length * BOOTSTRAP_RATIOS.MARGIN()) / self.columns().length));
     });
   });