Mini Program's simultaneous use of column-reverse and scroll-view causes the element to disappear

< H1 > question < / H1 >

when Mini Program uses both column-reverse and scroll-view , the elements in scroll-view are pushed to the top and cannot be seen. I simply drew a picture to show that blue is the screen, green is scroll-view , and yellow is view

that I want to fix at the bottom.

clipboard.png

the effect I want is yellow view fixed at the bottom, and green scroll-view occupies the screen except the yellow part

could you tell me how to solve this problem? Or is there any way to meet my needs?

< H1 > sample code < / H1 >
<!--WXML-->
<view class="wrapper">
    <view class="bottom-view"></view>
    <view class="scroll-wrapper">
        <scroll-view scroll-y="true">
            <view class="pushed">
                <view></view>
                <view></view>
            </view>
            <view class="main">
                <view>HelloWOLRD</view>
                ......
                <view>HelloWOLRD</view>
                <view>HelloWOLRD</view>
                <view>HelloWOLRD</view>
            </view>
        </scroll-view>
    </view>
</view>
<!--WXSS-->
.wrapper {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column-reverse;
}

.bottom-view {
    width: 100%; height: 100px;
}

.scroll-wrapper {
    width: 100%; height: 100%;
}

.pushed {
    width: 100%; height: 50px;
}

.main {
    width: 100%;
}
Mar.18,2021
The

problem has been resolved. The reason for
is that the property overflow: scroll; is not set in .scroll-wrapper . After setting it, the desired effect can be achieved

.
  • WeChat Mini Programs navigator

    error message: Fri Mar 23 2018 17:18:15 GMT+0800 (China Standard time) render layer error < navigator > should have url attribute when using navigateTo, redirectTo or switchTab ...

  • Flex layout

    the style of the above figure is as follows: <view style= display:flex;justify-content:space-between;align-items:center; > <view style= display:flex;align-items:center; > viewflex <image>< image> &...

    May.09,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb0415-22bf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb0415-22bf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?