angular-material-datetimepicker icon indicating copy to clipboard operation
angular-material-datetimepicker copied to clipboard

If opened from a modal it goes outside the browser

Open ErickXavier opened this issue 6 years ago • 5 comments

Hi,

I'm using AngularJS 1.6.9, Angular Material 1.1.7 and Angular Material Datepicker 1.5.1. Everytime I open the Datepicker from inside a modal, it shows with part of it outside the browser, on the top, always with top: 0px. whatsapp image 2018-02-27 at 09 22 15

ErickXavier avatar Feb 27 '18 12:02 ErickXavier

@ErickXavier please mare sure you use at least version Angular Material Datepicker 1.13.0 from my fork: https://github.com/beenote/angular-material-datetimepicker. Which browser is that?

hexadecy avatar Mar 02 '18 18:03 hexadecy

Ok, thanks!

I'm using Chrome with this theme: https://chrome.google.com/webstore/detail/material-incognito-dark-t/ahifcnpnjgbadkjdhagpfjfkmlapfoel

ErickXavier avatar Mar 02 '18 20:03 ErickXavier

md-dialog normally open at the center of the screen.

Maybe, you can supply your own CSS to override the default ones.

.dtp .md-dialog-container {
  position: absolute;
}

hexadecy avatar Mar 03 '18 03:03 hexadecy

That's what I did.

ErickXavier avatar May 02 '18 11:05 ErickXavier

Does that solved the issue? I think changing the included CSS will maybe break some other use case.

hexadecy avatar May 02 '18 13:05 hexadecy