Selaa lähdekoodia

HUE-6685 [jb] Stabilize arrow drawing on JB on Hue 4

Enrico Berti 8 vuotta sitten
vanhempi
commit
d6d2592

+ 2 - 2
apps/oozie/src/oozie/static/oozie/js/workflow-editor.ko.js

@@ -1266,8 +1266,8 @@ var WorkflowEditorViewModel = function (layout_json, workflow_json, credentials_
         var $painter = $(document.body);
         var correction = 0;
 
-        if ($('.oozie_workflowComponents').length > 0) {
-          $painter = $('.oozie_workflowComponents');
+        if ($('.oozie_workflowComponents:visible').length > 0) {
+          $painter = $('.oozie_workflowComponents:visible');
           correction = $('.page-content').scrollTop();
         }
 

+ 3 - 3
desktop/core/src/desktop/templates/hue.mako

@@ -755,6 +755,9 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
           if (!app.startsWith('security')) {
             self.lastContext = null;
           }
+          SKIP_CACHE.forEach(function (skipped) {
+            $('#embeddable_' + skipped).html('');
+          });
           self.isLoadingEmbeddable(true);
           loadedApps.forEach(function (loadedApp) {
             window.pauseAppIntervals(loadedApp);
@@ -775,9 +778,6 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
             $('#embeddable_security_hive2').html('');
             $('#embeddable_security_solr').html('');
           }
-          if (SKIP_CACHE.indexOf(app) > -1) {
-            $('#embeddable_' + app).html('');
-          }
           if (typeof self.embeddable_cache[app] === 'undefined') {
             if (loadedApps.indexOf(app) == -1){
               loadedApps.push(app);