Commit 46dc351c authored by Penom Nom's avatar Penom Nom
Browse files

Limit dialog height.

parent eb31d1c7
......@@ -20,6 +20,11 @@
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Plugin 'nG6' for the 'nG6' extension.
*
* @author PF bioinformatique de Toulouse <>
*/
//Global data
//Depths histogram
......@@ -36,6 +41,7 @@ $(function () {
// Set dialog window
$("#modal-label-tmpl").html("NG6 <small> " + $("#analyse_name").val() + "</small>");
$("#modal-body-tmpl").html('<div id="highcharts_container"></div>');
$("#modal-body-tmpl").css('max-height', modal_height(200, 100)+'px');
$("#modal-foot-tmpl").html('<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>');
$("#highcharts_container").css('max-width', '700px');
$("#ng6modal").css('width', 'auto');
......@@ -51,6 +57,7 @@ $(function () {
// Set dialog window
$("#modal-label-tmpl").html("NG6 <small> " + $("#analyse_name").val() + "</small>");
$("#modal-body-tmpl").html('<div id="highcharts_container"></div>');
$("#modal-body-tmpl").css('max-height', modal_height(200, 100)+'px');
$("#modal-foot-tmpl").html(
/*'<button id="linear_scale" class="btn" aria-hidden="true">Linear scale</button>' +
'<button id="log_scale" class="btn btn-primary disabled" aria-hidden="true">Log scale</button>' +*/
......@@ -87,6 +94,7 @@ $(function () {
// Set dialog window
$("#modal-label-tmpl").html("NG6 <small> " + $("#analyse_name").val() + "</small>");
$("#modal-body-tmpl").html('<div id="highcharts_container"></div>');
$("#modal-body-tmpl").css('max-height', modal_height(200, 100)+'px');
$("#modal-foot-tmpl").html('<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>');
$("#highcharts_container").css('width', '845px');
$("#ng6modal").css('width', 'auto');
......@@ -103,6 +111,7 @@ $(function () {
//Set dialog window
$("#modal-label-tmpl").html("NG6 <small> " + $("#analyse_name").val() + "</small>");
$("#modal-body-tmpl").html('<div id="d3_container"></div>');
$("#modal-body-tmpl").css('max-height', modal_height(200, 100)+'px');
$("#modal-foot-tmpl").html('<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>');
$("#d3_container").css('width', '845px');
$("#d3_container").css('height', '500px');
......
......@@ -39,6 +39,7 @@ $(function () {
//Set dialog window
$("#modal-label-tmpl").html("NG6 <small> " + $("#analyse_name").val() + "</small>");
$("#modal-body-tmpl").html('<div id="highcharts_container"></div>');
$("#modal-body-tmpl").css('max-height', modal_height(200, 100)+'px');
$("#modal-foot-tmpl").html('<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove"></i> Close</button>');
$("#highcharts_container").css('width', '845px');
$("#ng6modal").css('width', 'auto');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment