You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by jo...@apache.org on 2015/04/20 05:13:05 UTC

[28/50] [abbrv] incubator-nifi git commit: NIFI-508: - Fixing the ordering of words when the text wraps..

NIFI-508:
- Fixing the ordering of words when the text wraps..

Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/cd845c08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/cd845c08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/cd845c08

Branch: refs/heads/NIFI-271
Commit: cd845c08f27a44092389af18a9753f328f46b622
Parents: 9299355
Author: Matt Gilman <ma...@gmail.com>
Authored: Fri Apr 10 12:34:52 2015 -0400
Committer: Matt Gilman <ma...@gmail.com>
Committed: Fri Apr 10 12:34:52 2015 -0400

----------------------------------------------------------------------
 .../src/main/webapp/js/nf/canvas/nf-canvas-utils.js           | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/cd845c08/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js
----------------------------------------------------------------------
diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js
index f1cb458..4c6be57 100644
--- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js
+++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js
@@ -311,8 +311,9 @@ nf.CanvasUtils = (function () {
 
                     // if we've reached the last line, use single line ellipsis
                     if (++i >= lineCount) {
-                        // restore the current word
-                        var remainder = [word].concat(words);
+                        // get the remainder using the current word and 
+                        // reversing whats left
+                        var remainder = [word].concat(words.reverse());
 
                         // apply ellipsis to the last line
                         nf.CanvasUtils.ellipsis(tspan, remainder.join(' '));
@@ -322,7 +323,7 @@ nf.CanvasUtils = (function () {
                     } else {
                         tspan.text(word);
 
-                        // other prep the line for the next iteration
+                        // prep the line for the next iteration
                         line = [word];
                     }
                 }