Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebaseui-dialog too tall on chrome #806

Closed
sumarlidason opened this issue Jan 28, 2021 · 5 comments
Closed

firebaseui-dialog too tall on chrome #806

sumarlidason opened this issue Jan 28, 2021 · 5 comments

Comments

@sumarlidason
Copy link

[REQUIRED] Describe your environment

  "firebase": "^8.2.4",
  "firebaseui": "^4.7.1",

  System:
    OS: macOS 11.1
  Binaries:
    Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.11 - ~/.nvm/versions/node/v14.15.4/bin/npm
  Browsers:
    Chrome: 88.0.4324.96
    Edge: Not Found
    Firefox: Not Found
    Safari: 14.0.2

[REQUIRED] Describe the problem

firebaseui dialog grows after sign-on success
Screen Shot 2021-01-28 at 12 21 19 PM

Steps to reproduce:

complete sign-on w/ link, enter email address to continue (don't press enter), over mouse over script debug "pause execution button", press enter and rapidly click pause button.

Open inspector to view DOM.

Relevant Code:

/* If we do not set height here, the default Safari dialog settings make the
* dialog too tall. */
height: auto;

My interim fix

dialog.mdl-dialog.firebaseui-dialog.firebaseui-id-dialog {
  height: fit-content !important;
}

I haven't seen any side effects from overriding the height yet ~ but considering the comment already existing there ~ maybe implications elsewhere.

@sam-gc
Copy link
Contributor

sam-gc commented Jan 29, 2021

Hi, thanks for reaching out. Does it work if you set a max height on the element that contains Firebase UI in your app?

@sumarlidason
Copy link
Author

The dialog mounts to the DOM root, and its style is manually calculated:
Screen Shot 2021-01-29 at 6 48 03 AM

adding bottom: 'auto' also prevents the downward shift ~
image

🤷

@bojeil-google
Copy link
Contributor

bojeil-google commented Feb 2, 2021

I looked into this issue. I tried it out in various browsers and Chrome v87 and it works as expected. This issue seems to manifest in Chrome v88. I speculate it is a bug in the latest version of Chrome. We have a potential fix for it.

@bojeil-google
Copy link
Contributor

This should be fixed in the latest FirebaseUI-web release.

@orzcode
Copy link

orzcode commented Apr 27, 2024

This either isn't fixed, or the 'fix' seems to have developed a bug of its own.

In the latest version of Chrome as of today, this same dialog appears (for me) suddenly way over to the left of the screen, with seemingly random absolute position numbers:

image

image

I'm unable to tame this beast as it appears as a dialog overlaid on top of the rest of the page, so doesn't respect the flexbox rules in the place it 'should' be appearing (I.E: in the firebase auth div container like a regular Google Sign-in does)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants