angular-ui / ui-date

jQuery UI Datepicker for AngularJS
http://angular-ui.github.io/ui-date/
MIT License
266 stars 207 forks source link

Change z-index default value #27

Open hypersurface opened 11 years ago

hypersurface commented 11 years ago

The z-index is automatically set to z-index: 2 when I click on . How can I change this?

sthomp commented 11 years ago

I've also encountered a situation where the default z-index does not work for me.

deanapeterson commented 10 years ago

This is a problem with $.datepicker not ui-date.

one hack solution is the following (adapted from http://stackoverflow.com/questions/11533161/jquery-ui-datepicker-change-z-index)

$scope.datepickerOptions = {
    beforeShow : function(element, options){
        setTimeout(function(){
            angular.element(element).datepicker("widget").css("zIndex", 200000);
        }, 100);
    }
}
deanapeterson commented 10 years ago

created patch here: https://github.com/angular-ui/ui-date/pull/69

vvakame commented 10 years ago

:+1:

grapswiz commented 10 years ago

:+1:

stephennancekivell commented 9 years ago

:+1: