bootstrap-datepicker icon indicating copy to clipboard operation
bootstrap-datepicker copied to clipboard

Orientation wrong

Open ghost opened this issue 10 years ago • 10 comments

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)

ghost avatar Mar 01 '16 19:03 ghost

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....

ghost avatar Mar 01 '16 20:03 ghost

that bug should be fixed in 1.5 or 1.6

hebbet avatar Mar 01 '16 21:03 hebbet

Alright, thanks for keeping me posted.

ghost avatar Mar 12 '16 02:03 ghost

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

anpegar avatar Jul 14 '16 11:07 anpegar

@anpegar can you provide a jsfiddle example? thanks!

acrobat avatar Jul 14 '16 12:07 acrobat

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 !!

anpegar avatar Jul 14 '16 13:07 anpegar

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

julianfox avatar Oct 01 '16 12:10 julianfox

Still not working @ 1.6.5.

wagner avatar Apr 15 '17 22:04 wagner

I fixed it using the following JS:

https://github.com/soulim/ember-cli-bootstrap-datepicker/issues/78#issuecomment-296571933

joelklingler avatar Apr 24 '17 08:04 joelklingler

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.

FirstVertex avatar May 04 '17 21:05 FirstVertex