Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

Dynamic picker postion #209

Open
dheeraja00 opened this issue Feb 5, 2014 · 5 comments · May be fixed by #645
Open

Dynamic picker postion #209

dheeraja00 opened this issue Feb 5, 2014 · 5 comments · May be fixed by #645

Comments

@dheeraja00
Copy link

Is there any option or way to change the picker position dynamically, say if current position is top and I am scrolling then automatically position get change to bottom and vise verse.

@amnesia7
Copy link

This would be really useful. I would like mine normally to be below but change to being above if not enough room below, like bootstrap popover does when you set it to auto.

@amnesia7
Copy link

Failing that, is there a way to update the picker position depending on how much space is available onscreen when/before the picker is launched?

@AuspeXeu
Copy link
Collaborator

Not yet I am afraid but you can implement it :)

@cdennig
Copy link

cdennig commented Feb 23, 2016

+1

@iapolog2u
Copy link

A workaround for me

            $('#SettingsForm .minute-picker').each(function( i ) {
                var position = (i > 10) ? 'top-right' : 'bottom-right';
                $(this).datetimepicker({
                    format: 'hh:ii',
                    autoclose: true,
                    startView: 'day',
                    language: 'zh-CN',
                    pickerPosition: position
                });
            });

You can implement it like this way

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

Successfully merging a pull request may close this issue.

5 participants