Skip to content

Commit 4a75bd2

Browse files
committed
successful expand icon!
1 parent c8550fe commit 4a75bd2

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

ui.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,9 @@ url = {http://statnetproject.org}
805805
),
806806
div(id="termdocbox",
807807
verbatimTextOutput("termdoc")
808-
)
808+
),
809+
div(id="termexpand",
810+
icon(name="expand"))
809811
)
810812
),
811813
tabPanel("Control Options",

www/alert.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,15 @@ $(document).ready(function(){
9090
$(".chromewarningbox").toggle(500);
9191
});
9292

93-
$("#termdocbox").click(function(){
93+
$("#termexpand").click(function(){
94+
$("i",this).toggleClass("fa-expand fa-compress");
9495
if($("#termdocbox").height()<100){
9596
$("#termdocbox").css({
96-
"height":"250px"
97+
"max-height":"250px"
9798
});
9899
} else {
99100
$("#termdocbox").css({
100-
"height":"65px"
101+
"max-height":"65px"
101102
});
102103
}
103104

www/style.css

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,19 +228,17 @@ div.placeholder {
228228
#termdocbox {
229229
position:absolute;
230230
margin-right:10px;
231-
height:65px;
231+
max-height:65px;
232232
border: 1px solid #CECED8;
233233
border-radius: 5px;
234234
overflow:scroll;
235235
z-index:9;
236236
}
237237
#termexpand {
238238
position:absolute;
239+
right:3px;
239240
width:30px;
240241
height:20px;
241-
background: #FFFFFF;
242-
border: 1px solid #CECED8;
243-
border-radius: 5px;
244242
color: #A5A5AD;
245243
z-index:10;
246244
}

0 commit comments

Comments
 (0)