除了在Chrome上以外,角度材料日期选择器的位置是错误的 [英] Angular material datepicker position is wrong except on Chrome

查看:129
本文介绍了除了在Chrome上以外,角度材料日期选择器的位置是错误的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的项目中使用了angular-material和 md-datepicker

I am using angular-material and md-datepicker in my project.

表单,包含几个输入和< md-datepicker> ,问题是datepickers(日历,不是初始输入)的位置是错误的,除了第一个如果我没有使用谷歌浏览器,则为一个。

I'm having a form, containing several inputs and <md-datepicker> and the problem is that the position of the datepickers (the calendar, not the initial input) is wrong except for the first one if I'm not using Google Chrome.

如果所有< md-datepicker> 位于页面顶部,但是一旦我们需要向下滚动一下,定位就会失败。

The position seems to be correct if all the <md-datepicker> are at the top of the page next to each other, but as soon as we need to scroll down a bit, the positioning is failing.

这是一个codepen,您可以在Firefox上看到问题: http://codepen.io/anon/pen / pjGPGZ?editors = 101

Here is a codepen where you can see the issue on Firefox : http://codepen.io/anon/pen/pjGPGZ?editors=101

只需向下滚动并尝试使用日期选择器即可。

Just scroll down and try to use the datepickers.

推荐答案

正如Gianni指出的那样,它已被固定:
https://github.com/angular/material/commit/d423a65600cb6dc2638c91882b38be2dfea965f8

As Gianni pointed out, it has been Fixed by : https://github.com/angular/material/commit/d423a65600cb6dc2638c91882b38be2dfea965f8

这篇关于除了在Chrome上以外,角度材料日期选择器的位置是错误的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆