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

.datepicker-orient-top arrow bad positioning

Open peterekjs opened this issue 10 years ago • 11 comments

even with property bottom set to pseudo-elements on .datepicker-dropdown.datepicker-orient-top, there are still active top properties previously set on .datepicker. (probably it will make similar issues with left-right classes)

Suggest to put some resets into positioning classes e.g.:

.datepicker-dropdown.datepicker-orient-top {
    &::before,
    &::after {
        top: initial;
    }
}

peterekjs avatar May 05 '16 11:05 peterekjs

I'm not sure to understand what you're trying to achieve. Could you elaborate more ?

Azaret avatar May 07 '16 19:05 Azaret

I've also run into an issue with bad positioning of the arrow. Setting orientation explicitly doesn't help either.

As you can see, the picker itself is positioned correctly, but the arrow points in the wrong direction: eb29278636abd3424e18b3adf6ef433d e56b2871008172a649a9c3de8b93699a

stefanbruvik avatar May 10 '16 10:05 stefanbruvik

+1 61b571214d

steveast avatar Jun 02 '16 08:06 steveast

+1

biggu0 avatar Jun 13 '16 09:06 biggu0

https://github.com/eternicode/bootstrap-datepicker/issues/1816

anpegar avatar Jul 14 '16 11:07 anpegar

+1 on 1.6.4

taiansu avatar Sep 29 '16 09:09 taiansu

+1

julianfox avatar Oct 01 '16 12:10 julianfox

I have the same issue, I don't have a solution to correct that arrow direction, I just remove it by removing below-shown codes from the .css file, waiting for a final solution from others: .datepicker-dropdown:before { content: ''; display: inline-block; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #999; border-top: 0; border-bottom-color: rgba(0, 0, 0, 0.2); position: absolute; } .datepicker-dropdown:after { content: ''; display: inline-block; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #fff; border-top: 0; position: absolute; } .datepicker-dropdown.datepicker-orient-left:before { left: 6px; } .datepicker-dropdown.datepicker-orient-left:after { left: 7px; } .datepicker-dropdown.datepicker-orient-right:before { right: 6px; } .datepicker-dropdown.datepicker-orient-right:after { right: 7px; } .datepicker-dropdown.datepicker-orient-bottom:before { top: -7px; } .datepicker-dropdown.datepicker-orient-bottom:after { top: -6px; } .datepicker-dropdown.datepicker-orient-top:before { bottom: -7px; border-bottom: 0; border-top: 7px solid #999; } .datepicker-dropdown.datepicker-orient-top:after { bottom: -6px; border-bottom: 0; border-top: 6px solid #fff; }

machinefriendly avatar Dec 18 '16 21:12 machinefriendly

+1 I am also seeing this issue.

I would appear (perhaps I am wrong) that using an orientation of "auto left" will default to top first and bottom secondarily. I would think this would be the other way by default.

jadrake75 avatar Jan 19 '17 22:01 jadrake75

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 20:05 FirstVertex