Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Tabs 标签页的页面内容偏移 #115

Closed
flyfly6 opened this issue Apr 8, 2021 · 0 comments
Closed

Tabs 标签页的页面内容偏移 #115

flyfly6 opened this issue Apr 8, 2021 · 0 comments

Comments

@flyfly6
Copy link

flyfly6 commented Apr 8, 2021

H5 模式下,Tabs 标签页的页面内容偏移
应该是解决 #26 这个 issue 时引入的如下代码导致的,应该可以去掉了

// fix Tabs 标签页 页面内容偏移 https://github.com/psaren/taro-ui-vue/issues/26
const fixWebNum = ENV === Taro.ENV_TYPE.WEB ? 2 : 0
transformStyle = `translate3d(-${
current * (100 + fixWebNum)
}%, 0px, 0px)`

因为解决 #76 这个 issue 时已经把 inline-block 元素之间的间距去除了

psaren added a commit that referenced this issue Apr 9, 2021
psaren added a commit that referenced this issue Apr 9, 2021
psaren added a commit that referenced this issue Apr 9, 2021
@psaren psaren closed this as completed Apr 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants