Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

dialog: after scrolling, dialog appears off screen on the second time opened #10930

@egor-xyz

Description

@egor-xyz

Actual Behavior:

  • What is the issue? * $mdDialog on mobile dialog out of screen, when you open second time
  • What is the expected behavior? modal not on screen

CodePen (or steps to reproduce the issue): *

  • Scroll body
  • Open modal first time:

.md-dialog-container:

  • Open modal first time:
    in-line styles: top: 885px; height: 628px;
  • Open same modal second time (no need to scroll again)
    in-line styles: top: 1770px; height: 628px;

top for second click changed twice - and now modal out of screen

AngularJS Versions: *

  • AngularJS Version: 1.6.6
  • AngularJS Material Version: 1.1.5

Additional Information:

  • Browser Type: * Mobile
  • Browser Version: * 11
  • OS: * iOS 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: demoA CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issueos: iOSThis issue is specific to iOSresolution: duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions