iOS Question CLV Swipe B4i resize problem

Keith Yong

Active Member
Licensed User
Longtime User
https://www.b4x.com/android/forum/t...wipe-actions-and-pull-to-refresh.98252/page-2

Hi, I downloaded the b4i sample from the above link. I'm face problem if customlistview doesnt cover full page . I realise there is a mistake in the below coding, the position for Base.Top and Base.Left has been wrongly place.

B4X:
Public Sub Resize(Width As Int, Height As Int)
    CloseLastSwiped
    ActionsPanel.Width = Width
    Base.SetLayoutAnimated(0, Base.Top, Base.Left, Width, Height)
    If mPullToRefreshPanel.IsInitialized Then
        mPullToRefreshPanel.SetLayoutAnimated(0, 0, 0, Width, mPullToRefreshPanel.Height)
    End If
End Sub
 

Keith Yong

Active Member
Licensed User
Longtime User
Please upload a small project with your layout.

I meant the code in the sample given seem wrong. Below is the code given
B4X:
Base.SetLayoutAnimated(0, Base.Top, Base.Left, Width, Height)

I think the correct should be
B4X:
Base.SetLayoutAnimated(0, Base.Left, Base.Top,  Width, Height)
 
Upvote 0
Top