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