Closed rheesbeen closed 3 years ago
@rheesbeen do you see the card only during resizing (and once you end resizing it disappears again). Or it is still visible after the end of resizing.
It is still visible after the resize. It will rectify when you scroll a little or select an other page. I just saw that sometimes the item on the left side moves in during resize.
interesting.
Can you override the OnSizeChanged (OnSizeAllocated) of your page that you resize?
And perform a call there
carousel.ForceRedrawViews();
Or even better, subclass the carouselView and override the method.
class MyCarousel : PanCardView.CarouselView {
protected override void OnSizeChanged()
{
base.OnSizeChanged();
Device.BeginInvokeInMainThread(() => {
ForceRedrawViews();
RemoveUnprocessingChildren();
LayoutChildren(X, Y, Width, Height);
ForceLayout();
});
}
}
Overriding the OnSizeAllocated does the trick. Did not try the subclass option, do you want me to try that also?
Overriding the OnSizeAllocated does the trick. Did not try the subclass option, do you want me to try that also?
yes please
Overriding the OnSizeAllocated does the trick. Did not try the subclass option, do you want me to try that also?
how does overridden method look like?
try 2.7.3
Yes! That resolved the issue. Thanks for your time,
When you make the window bigger on UWP. The card outside the window becomes visible. Expected behaviour is that it shouldn't become visible.
Thnx for your time and please let me know how i can help.