mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-19 14:43:36 -04:00
swiper子节点特定场景下不显示
Signed-off-by: chenxuankai1 <chenxuankai1@huawei.com> Change-Id: I0c3a52e23a037c11bccaeaf3753d664369943679
This commit is contained in:
@@ -386,7 +386,8 @@ void RenderSwiper::PerformLayout()
|
||||
: -swiperHeight_ + prevMargin_ + nextMargin_;
|
||||
}
|
||||
nextItemOffset_ = -prevItemOffset_;
|
||||
UpdateChildPosition(std::fmod(scrollOffset_, nextItemOffset_), currentIndex_, true);
|
||||
auto childPosition = NearZero(nextItemOffset_) ? nextItemOffset_ : std::fmod(scrollOffset_, nextItemOffset_);
|
||||
UpdateChildPosition(childPosition, currentIndex_, true);
|
||||
quickTrunItem_ = false;
|
||||
|
||||
// layout indicator, indicator style in tv is different.
|
||||
|
||||
Reference in New Issue
Block a user