Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一个元素存在两个方向上的位移,当x方向或y方向属性变化时,会影响另外一个方向的属性变化。 #23

Closed
morelearn1990 opened this issue May 21, 2018 · 3 comments

Comments

@morelearn1990
Copy link

morelearn1990 commented May 21, 2018

这是demo地址
https://jsplayground.taobao.org/vueplayground/5d373be6-d099-4cfd-9b44-6f5b816a9e1d

当滑动x轴标题栏到中间,再滑动y轴标题栏时,会发现中间数据表格的x轴变成了初始的位置。是不是在改变某个元素 transform 位置的时候,x轴和y轴不是分开处理的,导致这儿会有x轴初始化的表现。

@Rowandjj
Copy link
Contributor

@morelearn1990 hi, please provide more details about the problem, such as device model(android or iOS), bindingx version, weex version.
BTW, The demo works fine in my android/iOS phone.

@Rowandjj
Copy link
Contributor

Rowandjj commented May 22, 2018

@morelearn1990 well. I get it.
In iOS and web, the transform attributes(rotate/scale/translate) always works together which means if you set translateX to some value, the translateY will be reset to 0.
but however in android, it works different, the translateX will not effect the translateY.

so for now, your hack code is necessary.

@morelearn1990
Copy link
Author

谢谢,我明白了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants