Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 7ae7821

Browse files
committed
Put in correct crop, show generic map when no address exists.
1 parent abcfc15 commit 7ae7821

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/views/buyWizardVw.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ module.exports = baseModal.extend({
407407
}
408408

409409
addressString = encodeURIComponent(addressString);
410-
var $iFrame = $('<iframe class="js-iframe-pending positionTop" width="525" height="250" frameborder="0" style="border:0; margin-top: 0;" />');
410+
var $iFrame = $('<iframe class="js-iframe-pending positionTop" width="525" height="250" frameborder="0" style="border:0; margin-top: 0; height: 250px; clip: rect(0,525px,250px,0)" />');
411411

412412
if ($currentIframe.length) {
413413
this.$buyWizardMap.find('.js-mapSpinner').removeClass('hide');
@@ -464,6 +464,7 @@ module.exports = baseModal.extend({
464464
this.showMaps();
465465
if (this.userModel.get('shipping_addresses').length === 0){
466466
this.createNewAddress();
467+
this.displayMap();
467468
$('.js-buyWizardAddressBack').show();
468469
$('.js-buyWizardNewAddressCancel').hide();
469470
}

0 commit comments

Comments
 (0)