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

Orientation wrong #1816

Closed
robjens opened this issue Mar 1, 2016 · 10 comments
Closed

Orientation wrong #1816

robjens opened this issue Mar 1, 2016 · 10 comments

Comments

@robjens
Copy link

robjens commented Mar 1, 2016

This is with orientation bottom, top does the same but the other way around so it is never pointed towards the element.

image

Not sure if this ticket will do anything, as there are +300 other ones in line. Also this seems to be limited to modal usage (of course), scanning a LOT of issues and nothing describes this. Please advice.

(should i find the 'fix', I'll drop a note and close this to keep the pile from collapsing)

@robjens
Copy link
Author

robjens commented Mar 1, 2016

Well, since changing orientation messes up the position, I used Chrome Dev tools and noticed the CSS was working fine, it just had a issue with switching position around as soon as I toggle up (to down) and down (to up).

First I thought it might have been the positioning of the modal, moved that around, wasn't it. Nothing funky with the input field it is attached to either (position css, removed static, nop).
So I thought, two can play that game, after finally having tried to instantiate the picker AFTER the modal was being opened, -also no effect- to finally just screw-you-guys-im-going-home mode, which of course did work:

$('#dtstart, #dtend').datepicker({
  language: 'nl',
  orientation: 'auto bottom'
}).on('show', function () {
  $('.datepicker-orient-bottom').removeClass('datepicker-orient-bottom');
  $('.datepicker-dropdown').addClass('datepicker-orient-top');
});

Problem 'solved' I guess....

@robjens robjens closed this as completed Mar 1, 2016
@hebbet
Copy link
Contributor

hebbet commented Mar 1, 2016

that bug should be fixed in 1.5 or 1.6

@robjens
Copy link
Author

robjens commented Mar 12, 2016

Alright, thanks for keeping me posted.

@anpegar
Copy link

anpegar commented Jul 14, 2016

Hi !!
The problem wasn't solved in 1.5.1 and upper.

I've found out that in the 1.3.0 works fine !!

Version 1.5.1
image

Version 1.3.0
image

@acrobat
Copy link
Member

acrobat commented Jul 14, 2016

@anpegar can you provide a jsfiddle example? thanks!

@anpegar
Copy link

anpegar commented Jul 14, 2016

Here it is
https://jsfiddle.net/7f0f0ao4/

If you change this
//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.5.1/js/bootstrap-datepicker.min.js

by this
//cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.min.js

It works fine !!

@julianfox
Copy link

Same for me, I have to use the 1.3.0... Any update about it ?

@wagner
Copy link

wagner commented Apr 15, 2017

Still not working @ 1.6.5.

@joelklingler
Copy link

I fixed it using the following JS:

soulim/ember-cli-bootstrap-datepicker#78 (comment)

@FirstVertex
Copy link

I noticed this behavior when I updated my installation of Bootstrap Datepicker. I updated the .js file but forgot to also update the .css file. I had wrong arrow. Once I updated also the css file to latest version, my arrows work correctly now.

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

No branches or pull requests

8 participants