rafaelweingartner closed pull request #2787: Fix wizards (new instance and new
zone) div width problem in Chrome
URL: https://github.com/apache/cloudstack/pull/2787
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ui/scripts/ui-custom/instanceWizard.js
b/ui/scripts/ui-custom/instanceWizard.js
index 443e2371378..1f830cea601 100644
--- a/ui/scripts/ui-custom/instanceWizard.js
+++ b/ui/scripts/ui-custom/instanceWizard.js
@@ -1359,18 +1359,18 @@
$wizard.find('div.data-disk-offering
span.custom-disk-size').html(_s(old));
});
+ var wizardWidth = 950;
+ if($.browser.mozilla){
+ wizardWidth = 896;
+ }
var wizardDialog = $wizard.dialog({
title: _l('label.vm.add'),
- width: 896,
+ width: wizardWidth,
height: 570,
closeOnEscape: false
});
- var wizardDialogDiv = wizardDialog.closest('.ui-dialog');
- wizardDialogDiv.css('z-index', 5001);
-
- $('button.ui-dialog-titlebar-close').remove()
- return wizardDialogDiv.overlay();
+ return
cloudStack.applyDefaultZindexAndOverlayOnJqueryDialogAndRemoveCloseButton(wizardDialog,
5001)
};
instanceWizard(args);
diff --git a/ui/scripts/ui-custom/zoneWizard.js
b/ui/scripts/ui-custom/zoneWizard.js
index 078f7afa0e4..2efba6694f6 100644
--- a/ui/scripts/ui-custom/zoneWizard.js
+++ b/ui/scripts/ui-custom/zoneWizard.js
@@ -1423,10 +1423,14 @@
showStep(1);
+ var wizardWidth = 850;
+ if($.browser.mozilla){
+ wizardWidth = 750;
+ }
var $dialog = $wizard.dialog({
title: _l('label.installWizard.addZone.title'),
closeOnEscape: false,
- width: 750,
+ width: wizardWidth,
height: 665,
resizable: false
});
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services