@@ -34,7 +34,7 @@ require('./elements_style.css');
3434
3535const DEF_BG = '#FFFFFF' ;
3636const DEF_LAYOUT = 'cose' ;
37- const DEF_HEIGHT = '500px ' ;
37+ const DEF_HEIGHT = '700px ' ;
3838
3939const DEF_STYLE = [ {
4040 selector : 'node' ,
@@ -302,14 +302,13 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
302302 . css ( { 'font-size' : '16px' , 'margin-top' : '10px' } ) ;
303303
304304 that . $pyvipr = $ ( "<h1>PyViPR</h1>" )
305- . css ( { 'font-size' : '1.3em' , 'margin-top ' : '10px ' , 'color ' : 'gray ' ,
305+ . css ( { 'font-size' : '1.3em' , 'color ' : 'gray ' , 'margin ' : '0 ' ,
306306 'font-family' : "\'Lucida console\', Lucida, monospace" , 'font-weight' : 'bold' } ) ;
307307
308308 that . $title = $ ( "<div id='title'></div>" )
309309 . append ( that . $model_title ) ;
310310
311311 that . $pyviprdiv = $ ( "<div id='pyviprid'></div>" )
312- . css ( { 'position' : 'absolute' , 'left' : '0.6em' , 'bottom' : '2em' } )
313312 . append ( that . $pyvipr ) ;
314313
315314 // Searchbox elements
@@ -318,7 +317,8 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
318317 that . $search_wrapper = $ ( "<div id='searchDiv'></div>" )
319318 . append ( that . $search ) ;
320319
321- that . $info = $ ( "<div id='info'></div>" ) ;
320+ that . $info = $ ( "<div id='info'></div>" )
321+ . css ( { 'color' : 'black' } )
322322
323323 // Fit button to fit network to cell space
324324 that . $fitButton = $ ( "<button id='fitbuttonid'><i class=\"fa fa-arrows-h\"></i></button>" ) ;
@@ -328,10 +328,11 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
328328 . css ( {
329329 "width" : "100%" ,
330330 "height" : "5em" ,
331- "bottom" : "500px" ,
332- "position" : "relative" ,
333331 "border" : "medium solid grey" ,
334- "border-radius" : "10px"
332+ "border-radius" : "10px" ,
333+ "background-color" : "#FFFFFF" ,
334+ "position" : "relative" ,
335+ "bottom" : "700px"
335336 } )
336337 . append ( that . $downloadButton )
337338 . append ( that . $fitButton )
@@ -431,7 +432,8 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
431432 "width" : "100%" ,
432433 "height" : "50px" ,
433434 "bottom" : "0px" ,
434- "position" : "relative"
435+ "position" : "relative" ,
436+ "background-color" : "white"
435437 } )
436438 . append ( that . $playButton )
437439 . append ( that . $slider )
@@ -635,18 +637,14 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
635637 // https://github.com/atomiks/tippyjs/issues/661
636638 let dummyDomEle = document . createElement ( 'div' ) ;
637639 node . tippy = tippy ( dummyDomEle , {
638- onCreate : function ( instance ) { // mandatory
639- // patch the tippy's popper reference so positioning works
640- // https://atomiks.github.io/tippyjs/misc/#custom-position
641- instance . popperInstance . reference = ref ;
642- } ,
640+ getReferenceClientRect : ref . getBoundingClientRect ,
643641 lazy : false , // mandatory
644642 trigger : 'manual' , // mandatory
645643 // dom element inside the tippy:
646644 content : function ( ) { // function can be better for performance
647- let div = document . createElement ( 'div' ) ;
648- div . innerHTML = text ;
649- return div ;
645+ let content = document . createElement ( 'div' ) ;
646+ content . innerHTML = text ;
647+ return content ;
650648 } ,
651649 // your own preferences:
652650 arrow : true ,
@@ -910,7 +908,7 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
910908 that . groupSelected = $ ( "<button id='groupSel'>Group</button>" )
911909 . css ( {
912910 'position' : 'absolute' ,
913- 'right' : '9.4em ' ,
911+ 'right' : '11em ' ,
914912 'top' : '0' ,
915913 'zIndex' : '999' ,
916914 'height' : '1.8em' ,
@@ -987,7 +985,8 @@ let CytoscapeView = widgets.DOMWidgetView.extend({
987985
988986 that . $popup = $ ( "<div class='fragment'>" +
989987 "</div>" )
990- . css ( { 'border' : '1px solid #ccc' , 'background' : '#FF7F7F' } )
988+ . css ( { 'border' : '1px solid #ccc' , 'background' : '#FF7F7F' ,
989+ 'position' : 'relative' , 'bottom' :'0' , 'z-index' : '999' } )
991990 . append ( that . $close )
992991 . append ( that . $message )
993992 . appendTo ( that . el . parentElement ) ;
0 commit comments