Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Issue 5655: console panel width empty elements

  • Loading branch information...
commit 277a22688ab0d2778fff90467e767e1d849ae5c0 1 parent 9446281
Jan Odvarko authored July 11, 2012
16  extension/content/firebug/console/consolePanel.js
@@ -474,6 +474,20 @@ Firebug.ConsolePanel.prototype = Obj.extend(Firebug.ActivablePanel,
474 474
             row.appendChild(node);
475 475
         }
476 476
 
  477
+        function logTextNode(text, row)
  478
+        {
  479
+            var nodeSpan = row.ownerDocument.createElement("span");
  480
+            if (text === "" || text === null || typeof(text) == "undefined")
  481
+                Css.setClass(nodeSpan, "logRowHint");
  482
+
  483
+            if (text === "")
  484
+                text = Locale.$STR("console.msg.an_empty_string");
  485
+
  486
+            var node = row.ownerDocument.createTextNode(text);
  487
+            row.appendChild(nodeSpan);
  488
+            nodeSpan.appendChild(node);
  489
+        }
  490
+
477 491
         if (!objects || !objects.length)
478 492
         {
479 493
             // Make sure the log-row has proper height (even if empty).
@@ -545,7 +559,7 @@ Firebug.ConsolePanel.prototype = Obj.extend(Firebug.ActivablePanel,
545 559
             logText(" ", row);
546 560
             var object = objects[i];
547 561
             if (typeof(object) == "string")
548  
-                FirebugReps.Text.tag.append({object: object}, row);
  562
+                logTextNode(object, row);
549 563
             else
550 564
                 this.appendObject(object, row);
551 565
         }

0 notes on commit 277a226

Please sign in to comment.
Something went wrong with that request. Please try again.