AndreiMisiukevich / CardView

CardsView | CarouselView | CoverflowView | CubeView for Xamarin.Forms
MIT License
710 stars 114 forks source link

Last element has empty space to the right #347

Closed stefancvetkovic closed 4 years ago

stefancvetkovic commented 4 years ago

Do you have some tip how to remove empty space when Im scrolling, my frames, and when I reached to its last element, I have blank space. I want not to have that space. Thanks

AndreiMisiukevich commented 4 years ago

Hi, I need more info

What control do you use Image with this bug Your markup or preproduction sample (because I cannot reproduce it)

stefancvetkovic commented 4 years ago

Hi, I'm using CoverFlowSampleXaml file in your sample solution. Meanwhile, I have another question regarding more complex elements in the frame element, like picture and text. So, my problems are:

extra space after last element

You can easily reproduce this scenario just replace CarouselSampleXamlView.xaml from your sample solution with this one: https://pastebin.com/0PkVQUUm

if you more like here is the full solution..just added another image to the resources file for android https://drive.google.com/open?id=1-4fuEwPvrNLQREx6t3pwPqpe2t2ebdgl

AndreiMisiukevich commented 4 years ago

You can easily reproduce this scenario just replace CarouselSampleXamlView.xaml from your sample solution with this one: https://pastebin.com/0PkVQUUm

Well, I did. But it's exactly the same xaml

AndreiMisiukevich commented 4 years ago

How to move label to the right, to begin when frame begins? label has unknown padding/margin I set background of this label to red on purpose, just you to see space around it.

Frame has default padding in Xamarin.Forms (20). So, just put 0...

AndreiMisiukevich commented 4 years ago

Do you want to avoid this one?

image

stefancvetkovic commented 4 years ago

Do you want to avoid this one?

image

Exactly, jus in my case, I have a lot of extra white space after last element.

AndreiMisiukevich commented 4 years ago

Do you want to avoid this one? image

Exactly, jus in my case, I have a lot of extra white space after last element.

Currently, that's impossible. But you can set IsCyclical = true

stefancvetkovic commented 4 years ago

I see..Cyclical = true is not option for me, my designer wants to be just like this, but without extra space at the end. Anyway, thanks for pointing me in the right direction ;)

AndreiMisiukevich commented 4 years ago

@stefancvetkovic I marked it as an enhancement. Perhaps I will try to implement that.

AndreiMisiukevich commented 4 years ago

I believe you should take a look at XF CollectionView for such feature :) I am not sure that I will implement that near future.

AndreiMisiukevich commented 4 years ago

Or you can use CarouselView with two elements on the one card

So two elements will be always visible at the moment