Browse Source

HUE-8155 [assist] Prevent cutting text in the multiLineEllipsis binding when the text is expanded

Johan Ahlen 7 years ago
parent
commit
ec55384c70
1 changed files with 4 additions and 0 deletions
  1. 4 0
      desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

+ 4 - 0
desktop/core/src/desktop/static/desktop/js/ko.hue-bindings.js

@@ -672,6 +672,10 @@
         self.onActionRender(self.$element, checkOverflow(self.element));
         self.onActionRender(self.$element, checkOverflow(self.element));
       }
       }
 
 
+      if (self.expanded()) {
+        return;
+      }
+
       self.isOverflowing = false;
       self.isOverflowing = false;
 
 
       while (checkOverflow(self.element)) {
       while (checkOverflow(self.element)) {