mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 15:40:52 +00:00
[bugfix] DropdownMenu: incorrect position in some browsers
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
##### DropdownItem
|
||||
|
||||
- 新增`title-class`属性
|
||||
- 修复在部分浏览器上定位错误的问题
|
||||
|
||||
##### Picker
|
||||
|
||||
|
@@ -44,7 +44,7 @@ export default sfc({
|
||||
toggleItem(active) {
|
||||
const { menu } = this.$refs;
|
||||
const rect = menu.getBoundingClientRect();
|
||||
this.top = rect.y + rect.height;
|
||||
this.top = rect.top + rect.height;
|
||||
|
||||
this.children.forEach((item, index) => {
|
||||
if (index === active) {
|
||||
|
Reference in New Issue
Block a user