google-pay-button icon indicating copy to clipboard operation
google-pay-button copied to clipboard

Google Pay window getting cropped when using Google Chrome + Windows

Open daanklijn opened this issue 4 years ago • 2 comments

Describe the bug

Hey folks! 👋 In our setup we have incorporated the React GP button inside a relatively small (width = ~400px) popup. Unfortunately this setup is causing cropping problems for some of our users that are using Google Chrome + Windows. When the user clicks the GP Button inside our popup the GP Payment window that pops up is being cropped. Due to this the user cannot see the 'Pay' button and is therefore not able to pay until they resize the window. We can solve this on our side by changing the width of our popup, but in my opinion GP should also work inside these smaller browser windows.

To Reproduce

  1. Setup a GooglePay button (react) inside a window having a width smaller than 600px.
  2. Open the app using Google Chrome on Windows.
  3. Click the button.
  4. See that the opened payment window is cropped.

Screenshots

Screenshot 2021-12-29 at 11 31 46

Expected behavior

Obviously this window should not be cropped. For example, on Google Chrome + MacOS the window is not being cropped:

Screenshot 2021-12-29 at 11 38 29

Component information:

  • Component

    • [x] React component (@google-pay/button-react)
    • [ ] Custom element (@google-pay/button-element)
    • [ ] Angular component (@google-pay/button-angular)
  • Component version (e.g. 1.0.0): 2.6.0

Environment:

  • OS (e.g. iOS8.1): Windows 10
  • Browser (e.g. stock browser, safari): Chrome 96.0.4664.110
  • Country/region: US

daanklijn avatar Dec 29 '21 10:12 daanklijn

I believe Mac's behaviour is not expected. Filed crbug.com/1283234 for the content area partially living out of the window on Mac.

It has been brought to GPay team's attention as well.

Have you tried it on Mac's Chrome Canary? Is it reproducible there?

maxlgu avatar Dec 29 '21 18:12 maxlgu

Yes, just tested, and it also reproducible on Chrome Canary.

daanklijn avatar Jan 04 '22 14:01 daanklijn

Closing as this is a Chrome issue: crbug.com/1283234

dmengelt avatar May 31 '23 09:05 dmengelt