Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Open dialog relativeTo #2271

Closed
luano opened this issue Apr 11, 2015 · 4 comments
Closed

Open dialog relativeTo #2271

luano opened this issue Apr 11, 2015 · 4 comments
Assignees
Labels
for: internal contributor The team will address this issue and community PRs are not requested. resolution: duplicate

Comments

@luano
Copy link

luano commented Apr 11, 2015

I would like to open a dialog at a position relative to a another component.

On a smaller device it is ok to center dialogs and the animation is nice, but in some scenarios and in particular on larger screens centering is not always a great option and can lose the context of the interaction a bit. Therefore I would like to open the dialog relative to another componet e.g. rightOf/leftOf etc.

@epelc
Copy link
Contributor

epelc commented Apr 13, 2015

@luano you can use the parent option of $mdDialog.show(mdDialogOptions)

See the full docs here. The options are near the end of the page.

@luano
Copy link
Author

luano commented Apr 13, 2015

That's ok, but when the parent is set that way it will clip the dialog to its bounds. The method will also center the dialog and this may again obscure the 'source' element or be a bit visually disconnected.

@ThomasBurleson ThomasBurleson self-assigned this Apr 24, 2015
@ThomasBurleson ThomasBurleson added the for: internal contributor The team will address this issue and community PRs are not requested. label Apr 24, 2015
@ThomasBurleson ThomasBurleson modified the milestone: 0.10.0 May 13, 2015
@ThomasBurleson ThomasBurleson modified the milestones: 0.10.0, 0.11.0 Jun 16, 2015
@cah-alexsukhodolsky
Copy link
Contributor

+1

@ThomasBurleson
Copy link
Contributor

Duplicate of #1206

@Splaktar Splaktar removed this from the 1.0-rc1 milestone Feb 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
for: internal contributor The team will address this issue and community PRs are not requested. resolution: duplicate
Projects
None yet
Development

No branches or pull requests

5 participants