You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Transaction confirmation window never opens on a small screen device.
Steps
Use a small device whose window.innerWidth would be less than 420px and/or window.innerHeight would be less than 540px in the browser.
Set up coinbase smart wallet on the device.
Attempt to send a transaction through a web app that would open a pop up window for a transaction confirmation. Observe that nothing happens because of an error opening the pop up window.
Expected behavior
The pop up window opens for transaction confirmation, regardless of device screen size.
Version
latest
Additional info
For this openPopup function in packages/wallet-sdk/src/util/web.ts, for these lines:
If the device (i.e. the window) has an innerWidth < 420 and/or an innerHeight < 540, as defined at the top of this file, the resulting values for left and/or top will likely be negative (screenX and screenY are typically 0 or close to 0), and the pop up window will fail to open. This prevents support for smaller devices.
Desktop
No response
Smartphone
Device: iPhone13
OS: iOS 17
Browser: safari
The text was updated successfully, but these errors were encountered:
Left and top refer to position, not width and height. My mistake. However, may be worth noting there are cases where the position could be negative, as described in the issue, which may be unintended behavior.
Describe the bug
Transaction confirmation window never opens on a small screen device.
Steps
Expected behavior
The pop up window opens for transaction confirmation, regardless of device screen size.
Version
latest
Additional info
For this
openPopup
function in packages/wallet-sdk/src/util/web.ts, for these lines:If the device (i.e. the window) has an innerWidth < 420 and/or an innerHeight < 540, as defined at the top of this file, the resulting values for left and/or top will likely be negative (screenX and screenY are typically 0 or close to 0), and the pop up window will fail to open. This prevents support for smaller devices.
Desktop
No response
Smartphone
The text was updated successfully, but these errors were encountered: