在view中设置了float:left时,view中的slider异常
发布于 4 年前 作者 luming 9734 次浏览 来自 问答

bug表现

view中设置了float:left时,view中的slider只有最左边的正常显示,除掉最左边的view中slider,其余view设置了float:left的含有slider出现异常,具体体现是其slider的bindchange和bindchanging事件直接变成最小值,不能拖到也不能点

4 回复

大概多久能修复呢

问题复现出来了,这是已知问题,后续版本会进行修复。

我这边没能复现,提供以下问题出现的机型、基础库版本和能复现的demo?

<view style=‘width:375px;height:300px;overflow-x:scroll;’>

<view style=‘width:1875px;height:300px;’>

<view style=‘width:375px;float:left;height:300px;’>

<scroll-view scroll-y style=‘width:375px;height:300px;display:{{demoShowContent1==0?"":“none”}};float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines”  bindscrolltolower=“loading”>

<view style=‘padding-bottom:80rpx;width:375px;’>

</view>

</scroll-view>

<scroll-view scroll-y style=‘375px;height:300px;display:{{demoShowContent1==1?"":“none”}};float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines”  bindscrolltolower=“loading”>

<view style=‘padding-bottom:40rpx;width:375px;’>

</view>

</scroll-view>

</view>

<view style=‘width:375px;float:left;’>

<scroll-view scroll-y style=‘375px;height:300px;float:left;’ upper-threshold=“50” lower-threshold=“200”>

<view style=‘width:375pxpx;’>

<view style=‘padding:20px 0;’>

<view class=“body-view”>

<slider catchchanging=“setWordsSize” catchchange=“setWordsSize” step=“1” min=“12” max=“100” value=‘20’/>

</view>

</view>

</view>

</scroll-view>

</view>

<view style=‘width:375px;float:left;height:300px;’>

<scroll-view scroll-y style=‘375px;height:300px;display:{{demoShowContent2==2?"":“none”}};float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines”  bindscrolltolower=“loading”>

<view style=‘padding-bottom:80rpx;width:375px;’>

</view>

</scroll-view>

</view>

<view style=‘width:375px;float:left;height:300px;’>

<scroll-view scroll-y style=‘375px;height:300px;float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines”  bindscrolltolower=“loading”>

<view style=‘width:375px;’>

</view>

</scroll-view>

</view>

<view style=‘width:375px;float:left;height:300px;’>

<scroll-view scroll-y style=‘375px;height:{{scrollHeight}}px;float:left;’ upper-threshold=“50” lower-threshold=“200” bindscrolltoupper=“displayTwoLines”  bindscrolltolower=“loading”>

<view style=‘width:375px;’>

</view>

</scroll-view>

</view>

</view>

</view>

代码如上,带slider的view放第一个就正常,放其他位置就异常,

回到顶部