From 76f73137f6e1396dc5b6a0e15192946974e22453 Mon Sep 17 00:00:00 2001 From: Gary Paige Date: Tue, 11 Nov 2014 10:48:54 -0600 Subject: [PATCH] override relative positioning on dialog styles --- app/assets/javascripts/jquery.select_deployment_target.js | 7 ++++++- app/assets/stylesheets/panamax.css.scss | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/jquery.select_deployment_target.js b/app/assets/javascripts/jquery.select_deployment_target.js index ee5b2c99..25ace2b4 100644 --- a/app/assets/javascripts/jquery.select_deployment_target.js +++ b/app/assets/javascripts/jquery.select_deployment_target.js @@ -10,7 +10,8 @@ base.defaultOptions = { targetSelector: '.select-deployment-target', - filterSelector: '.select-remote-target' + filterSelector: '.select-remote-target', + dialogContentSelector: '.ui-dialog-content' }; @@ -47,7 +48,11 @@ targetDialog = $.PMX.Helpers.dialog(base,$contents, { title: 'Select Remote Deployment Target' }); + targetDialog.dialog('open'); + + // must set height here or jQueryUI sets inline style to auto + $contents.css('height', ($contents.height() + 20) + 'px'); }; base.handleClose = function () { diff --git a/app/assets/stylesheets/panamax.css.scss b/app/assets/stylesheets/panamax.css.scss index f8d29dad..00b9031c 100644 --- a/app/assets/stylesheets/panamax.css.scss +++ b/app/assets/stylesheets/panamax.css.scss @@ -353,6 +353,10 @@ ul[class*='button-menu'] { margin-left: 5px; } +.ui-dialog { + position:absolute; +} + // Confirm delete dialog .confirm-delete {