Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwipeItems not showing up correctly #4

Open
reigam opened this issue Jan 12, 2023 · 1 comment
Open

SwipeItems not showing up correctly #4

reigam opened this issue Jan 12, 2023 · 1 comment

Comments

@reigam
Copy link

reigam commented Jan 12, 2023

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
@reigam
Copy link
Author

reigam commented Jan 12, 2023

More findings:

  • Icon.png not showing on android
  • Iphone Simulator shows all SwipeItems, but also no icon.png
  • adding Image(Aspect.AspectFit, "icon.png") above SwipeView leads to icon disappearing after swiping
Android.Emulator.-.pixel_5_-_api_30_5554.2023-01-12.22-47-15.mp4
Android.Emulator.-.pixel_5_-_api_30_5554.2023-01-12.22-57-57.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant