cytoscape / cyjShiny

An R/shiny widget for cytoscape.js
Other
92 stars 28 forks source link

widget resizing needs work #11

Closed paul-shannon closed 5 years ago

paul-shannon commented 5 years ago

The strategy to follow is described here.

paul-shannon commented 5 years ago

Resizing is not an internal cyjShiny widget problem after all, nor it it easily solved. It is a consequence of the fluidPage offered (and most often used) by Shiny. An alternative, significantly harder to use, and therefore a poor option for most developers who wish to the cyjShiny widget, is filledPage. Note, in the example provided, the custom css required to make filledPage work.

I recommend that developers using cyjShiny widget stick with the fluidPage layout, and set a reasonable width and height for the widget via the cyjShiny constructor. cyjShiny examples use this approach. RStudio/Shiny may provide more convenient layout options in time.

  cyjShiny(graph, layoutName, styleFile=NA, width, height)