]> granicus.if.org Git - clang/commitdiff
Make sure popup is on top over other spans. wrap long line.
authorChris Lattner <sabre@nondot.org>
Thu, 17 Apr 2008 21:28:41 +0000 (21:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 17 Apr 2008 21:28:41 +0000 (21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49870 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/HTMLRewrite.cpp

index 1041d612dd6ab08be22ef14ca7de8fef4076083f..afacdeeeed63d6e4e4d7f9dddfc43a042b62f83b 100644 (file)
@@ -120,7 +120,8 @@ void html::EscapeText(Rewriter& R, unsigned FileID,
       if (!ReplaceTabs)
         break;
       if (EscapeSpaces)
-        RB.ReplaceText(FilePos, 1, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 6*8);
+        RB.ReplaceText(FilePos, 1, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
+                       "&nbsp;&nbsp;&nbsp;", 6*8);
       else
         RB.ReplaceText(FilePos, 1, "        ", 8);
       break;
@@ -269,7 +270,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, unsigned FileID) {
       " .macro:hover .expansion { display: block; border: 2px solid #FF0000; "
           "padding: 2px; background-color:#FFF0F0;"
           "  -webkit-border-radius:5px;  -webkit-box-shadow:1px 1px 7px #000; "
-          "position: absolute; top: -1em; left:10em } \n"
+          "position: absolute; top: -1em; left:10em; z-index: 1 } \n"
       " .macro { color: #FF0000; background-color:#FFC0C0;"
              // Macros are position: relative to provide base for expansions.
              " position: relative }\n"