Skip to content

Commit 0c79c99

Browse files
authored
Merge pull request #1248 from tulinkry/scopes-window
Scopes window
2 parents 46b5e1b + e7ba730 commit 0c79c99

File tree

6 files changed

+647
-495
lines changed

6 files changed

+647
-495
lines changed

src/org/opensolaris/opengrok/analysis/JFlexXref.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,6 @@ public void write(Writer out) throws IOException {
345345
while (!stack.empty()) {
346346
yypop();
347347
}
348-
349-
writeScopesFooter();
350-
}
351-
352-
/**
353-
* Write a JavaScript function that display scopes panel if scopes are
354-
* available
355-
*/
356-
private void writeScopesFooter() throws IOException {
357-
//TODO try to get rid of included js scripts generated from here (all js should ideally be in util)
358-
if (scopesEnabled && scopes != null && scopes.size() > 0) {
359-
out.append("<script type=\"text/javascript\">document.getElementById(\"scope\").style.display = \"block\";</script>");
360-
}
361348
}
362349

363350
/**

web/default/style.css

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -814,14 +814,17 @@ a.scope { /* scope */ color: dodgerblue; font-weight: bo
814814
display: none;
815815
}
816816

817-
.intelli-window {
817+
.window {
818818
position: absolute;
819-
width: 504px;
820-
max-height: 400px;
821-
overflow: auto;
822-
z-index: 10;
823819
font-size: 12px;
824820
font-family: monospace;
821+
overflow: auto;
822+
z-index: 10;
823+
}
824+
825+
.intelli-window {
826+
width: 504px;
827+
max-height: 400px;
825828
}
826829

827830
.symbol-highlighted {
@@ -830,13 +833,13 @@ a.scope { /* scope */ color: dodgerblue; font-weight: bo
830833
}
831834

832835
.messages-window {
833-
position: absolute;
834836
width: 40%;
835837
max-height: 400px;
836-
overflow: auto;
837-
z-index: 10;
838-
font-size: 12px;
839-
font-family: monospace;
838+
}
839+
840+
.scopes-window {
841+
min-width: 150px;
842+
max-height: 400px;
840843
}
841844

842845
.important-note {
@@ -1069,16 +1072,6 @@ span.scope-signature {
10691072
display: none;
10701073
}
10711074

1072-
div#scope {
1073-
display: none;
1074-
min-height: 1em;
1075-
text-align: left;
1076-
background-color: #dddddd;
1077-
padding: 0.5em 0.5em 0.5em 6.5ex;
1078-
font-family: monospace;
1079-
font-weight: bold;
1080-
}
1081-
10821075
/** --------------- fold arrows for main page ------------ */
10831076

10841077
.fold-down:before {

0 commit comments

Comments
 (0)