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

Dialog direction #113

Open
phillmorgan28 opened this issue Mar 25, 2021 · 1 comment
Open

Dialog direction #113

phillmorgan28 opened this issue Mar 25, 2021 · 1 comment
Labels
question Further information is requested

Comments

@phillmorgan28
Copy link

Hi, is it possible to control the direction the dialog displays?

For example, at the moment when I click my button the picker displays below the button / mouse cursor and ends up rendering off of the bottom of the screen. What I would like to do is have the picker render upwards above the button / mouse cursor.

Is this available as a property or should I explore CSS to achieve this?

Many Thanks

@serebrov
Copy link
Owner

It should be possible, but this is actually out of the scope of this library as it does not provide any popup mechanism.

In the project where I have used this library, we had custom CSS design, although I do not remember if controlling the picker position was part of the CSS (and if we tried to handle the position).

In the demo app there is a "QDialog Example" which uses the dialog from the quasar library and it seems to behave the way you describe it: if you scroll the page down, it is shown above the button and if you scroll it up, it is below the button.

This is still a popup-up and you are probably looking for more of a dropdown experience, but I think similar generic dropdown components might exist too and it should not be hard to integrate the picker into such generic component.

@serebrov serebrov added the question Further information is requested label Mar 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants