Skip to content

Commit

Permalink
Merge pull request #37 from wirecard/TPWDCEE-826
Browse files Browse the repository at this point in the history
#55 Better popup loading on small screens
  • Loading branch information
jpy committed Feb 15, 2018
2 parents 602723b + ca53d1c commit 36c1ec8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class Wirecard_CheckoutSeamless_Helper_Data extends Mage_Payment_Helper_Data
{

protected $_pluginVersion = '4.2.6';
protected $_pluginVersion = '4.2.7';
protected $_pluginName = 'Wirecard/CheckoutSeamless';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abstract class Wirecard_CheckoutSeamless_Model_Abstract extends Mage_Payment_Mod
protected $_defaultLocale = 'en';

protected $_order;
protected $_pluginVersion = '4.2.5';
protected $_pluginVersion = '4.2.7';
protected $_pluginName = 'Wirecard/CheckoutSeamless';

protected $_formBlockType = 'wirecard_checkoutseamless/form';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<config>
<modules>
<Wirecard_CheckoutSeamless>
<version>4.2.6</version>
<version>4.2.7</version>
</Wirecard_CheckoutSeamless>
</modules>
<global>
Expand Down
9 changes: 7 additions & 2 deletions js/wirecard/checkoutseamless/processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,16 @@ Event.observe(window, 'load', function () {
window.location.href = innerResponse.url;
}
else {
var width = 500;
if (document.body.clientWidth < 500) {
width = document.body.clientWidth;
}
var oPopup = new Window({
id:'popup_window',
className: 'magento',
windowClassName: 'magentopopup',
url: innerResponse.url,
width: 500,
width: width,
height: 500,
minimizable: false,
maximizable: false,
Expand All @@ -144,7 +149,7 @@ Event.observe(window, 'load', function () {
});
oPopup.setZIndex(100);
oPopup.showCenter(true);
console.log(oPopup);
$('#popup_window_content').width(width);
}
}
else {
Expand Down

0 comments on commit 36c1ec8

Please sign in to comment.