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

popover placement behaviour problems #14422

Closed
publicocean0 opened this issue Aug 20, 2014 · 1 comment
Closed

popover placement behaviour problems #14422

publicocean0 opened this issue Aug 20, 2014 · 1 comment
Labels

Comments

@publicocean0
Copy link

comparing the behaviour of auto placement of datatime picker with popover there are many emprovements to do: when i resize page for example popover lose the right position;
In addition, auto setting for my opition has a insufficient information because it starts to place where it want not where developer wants. Usually i set a normal position where i want place popover, if it is not possible so then try to re place automatically in different side. A better setting for replacement could be auto:start_side:strategy , where auto_start is the normal side where place it, strategy is moviment sense in the automatic replacement , in the sense of clock or opposite.
example : auto:right:round_to_left replace in the right side if possible else place it in top if possible else place in left side if possible ... (opposite of clock orientation )

@juthilo juthilo added the js label Aug 20, 2014
@cvrebert cvrebert changed the title replacement behaviour problems popover placement behaviour problems Aug 20, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Sep 10, 2014

when i resize page for example popover lose the right position

Adding a fix for this will be considered for v4, see #12799.

In addition, auto setting for my opition has a insufficient information because it starts to place where it want not where developer wants. Usually i set a normal position where i want place popover, if it is not possible so then try to re place automatically in different side. A better setting for replacement could be auto:start_side:strategy , where auto_start is the normal side where place it, strategy is moviment sense in the automatic replacement , in the sense of clock or opposite.
example : auto:right:round_to_left replace in the right side if possible else place it in top if possible else place in left side if possible ... (opposite of clock orientation )

I'm not sure I fully understand you here, but if you're unhappy with the auto placement you can always roll with your custom solution by passing a function as the placement option.
Anyhow, we have multiple open issues regarding placement of tooltips and also a few PRs trying to improve it. Moreover, there is #14327 in which outsourcing the whole placement code to a different library was discussed with the conclusion of considering it for v4.

I'm going to close this issue but feel free to send a PR if you have a working implementation of your proposal. Thanks!

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

No branches or pull requests

3 participants