Skip to content

SwipeItems not showing up correctly #4

@reigam

Description

@reigam

Description:

  • Amazon Fire HD 8:
    -- Using SwipeView with 3 SwipeItems, only 2 show up in portrait mode, none in landscape mode
    -- Items, even if not visible, can still be clicked
  • Android Emulator Nexus 5:
    -- Using SwipeView with 3 SwipeItems, 3 show up in portrait mode, only 1 in landscape mode
    -- Items, even if not visible, can still be clicked
  • The same setup works fine in Xamarin.Forms

Steps to reproduce:

  • Fresh "Fabulous XF Blank" 2.1.3
  • Add SwipeView to view:
SwipeView(
    (Grid() {
        Label("Swipe left or Right")
            .centerTextHorizontal ()
    })
        .centerHorizontal()
        .centerVertical()
        .size(300., 60.)
)
    .leftItems(
        SwipeItems() {
            SwipeItem(Increment)
                .text("About")                                
                .backgroundColor(Xamarin.Forms.Color.Red.ToFabColor())
                .icon("icon.png")

            SwipeItem(Increment)
                .text("About")
                .backgroundColor(Xamarin.Forms.Color.Green.ToFabColor())

            SwipeItem(Decrement)
                .text("github")
                .backgroundColor(Xamarin.Forms.Color.Blue.ToFabColor())
        }
    )//.onSwipeStarted(SwipeStarted) 
  • Swipe right on tablet or emulator

Expected outcome:

  • All SwipeItems should be visible when swiped on the SwipeView

Actual outcome:

  • Some SwipeItems are not visible when swiped on the SwipeView

Environment:

  • Fabulous.XamarinForms version: 2.1.3
  • Device: Amazon Fire HD 8; Android Emulator for VS (Nexus 5)
  • OS: Windows 10
  • IDE: Rider 2022.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions