question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug with Material Popup

See original GitHub issue

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

MacOS Catalina

Versions

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 9.1.2
Node: 12.11.1
OS: darwin x64

Angular: 9.1.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.2
@angular-devkit/build-angular     0.901.2
@angular-devkit/build-optimizer   0.901.2
@angular-devkit/build-webpack     0.901.2
@angular-devkit/core              9.1.2
@angular-devkit/schematics        9.1.2
@angular/cdk                      9.2.1
@angular/flex-layout              9.0.0-beta.29
@angular/language-service         9.1.5
@angular/material                 9.2.1
@ngtools/webpack                  9.1.2
@schematics/angular               9.1.2
@schematics/update                0.901.2
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0
    

Repro steps

On your page create a button for open a popup (but you need to scroll for clic on the button). Inside the popup insert mat-search-google-maps-autocomplete and the auto-complete will appear outside of the screen. The auto-complete do not take into account the scroll which was previously carried out.

Here is a diagram to illustrate :

image

image

The log given by the failure

UI Bugs

Desired functionality

Don’t loose the scroll value with popup

Mention any other details that might be useful

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
filolcommented, May 13, 2020

Fix with :

  constructor(public dialog: MatDialog, protected overlay: Overlay) {}

open() {
    this.dialog.open(PopupModifyCoordonneesComponent, {
      scrollStrategy: this.overlay.scrollStrategies.reposition(),
    });
  }

Maybe you can document it somewhere?

0reactions
AnthonyNahascommented, Jul 29, 2020

I will close this ticket for the moment since it has nothing actually todo with the lib!

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug(MatDialog): When opening multiple dialogs in a short ...
After clicking "Yes, delete" another MatDialog needs to popup instantly with "Unable to delete File. No permission!" (In both cases the ...
Read more >
Angular material dialog does not display data (bug)
The DialogService opens a dialog with given data. The first call for this method is well, I got the dialog with wanted data...
Read more >
Angular Dragdrop Dialog Bug
material -module';. import {CdkDragDropSortingExample} from './. app/cdk-drag-drop-sorting-example';. import {MainComponent} from './app/main. component';.
Read more >
Montessori Materials: Pop Up Port a Bug
Pop up your Port-A-Bug, put in some friendly insects, and you're ready for buggy fun! Observe butterflies, ladybugs, and other friendly critters in...
Read more >
SANSBUG 1-Person Popup Screen Tent (Tarp Floor)
The incredible SansBug bug tent can ensure your escapade goes off without a hitch. Let the fresh air drift in while keeping any...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found