Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] .IsVisible Render Issue #13307

Open
ColdstarJoey opened this issue Jan 6, 2021 · 14 comments
Open

[Bug] .IsVisible Render Issue #13307

ColdstarJoey opened this issue Jan 6, 2021 · 14 comments
Labels
5.0.0 Regression on 5.0.0 a/scrollview i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression p/Android t/bug 🐛

Comments

@ColdstarJoey
Copy link

Description

when having a element (frame) in a ScrollView when I scroll to the bottom and hit a checkbox to turn off that frame (Name.IsVisible = false) it hides it as normal but when re adding the frame but when unticking the checkbox it only renders what the screen can see. when reverting back to Forms 4.8 it works perfectly.

Steps to Reproduce

  1. have a frame or element in a ScrollView near the bottom of the page
  2. use a checkbox to make visibility change
  3. when it actives it only shows the added part of the frame not the full frame and content unless you tap on it
@ColdstarJoey ColdstarJoey added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 6, 2021
@hartez
Copy link
Contributor

hartez commented Jan 6, 2021

@ColdstarJoey Which platform are you seeing this behavior on?

@hartez hartez added the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jan 6, 2021
@ColdstarJoey
Copy link
Author

@ColdstarJoey Which platform are you seeing this behavior on?

Hi the platform was Android and the device was a new Samsung Tab A

@Tommigun1980
Copy link

Could this be related to or the same bug as #13203 and #13126 (comment)?

@hartez hartez removed the s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. label Jan 12, 2021
@oscarjaergren
Copy link

I have the same error! Does anyone have a workaround?

@oscarjaergren
Copy link

Workaround for me is to wrap the ScrollView around a StackLayout or other control.
The error only happens if ScrollView is the root content of the page.

@rmarinho
Copy link
Member

Hi @ColdstarJoey can you please upload a small reproduction? having troubles to reproduce it myself.

thanks

@rmarinho rmarinho added the s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. label Jan 27, 2021
@luccasclezar
Copy link

luccasclezar commented Feb 11, 2021

Here it is :)

This issue may be the same as #12567 and #13418 by the way, and if it is, it could probably already be fixed by #13640, but I tested with Xamarin.Forms 5.0.1.2008-nightly and the issue is still there.

LayoutTest.zip

martongyiran added a commit to martongyiran/CraftLogs that referenced this issue Feb 16, 2021
- QRHandler, Model, Recepies

Shop page fixes
Bugfix: xamarin/Xamarin.Forms#13307
@LGFox
Copy link

LGFox commented Feb 18, 2021

I have this problem too. ScrollView is a root element on every page of my app. :-)
I have Xamarin.Forms 5.0.0.2012 and I'll downgrade to 4.8.0.1821

However, @oscarjaergren, your workaround works!

@Redth Redth removed the s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. label Mar 4, 2021
@rmarinho rmarinho removed the s/unverified New report that has yet to be verified label Mar 9, 2021
@rmarinho
Copy link
Member

rmarinho commented Mar 9, 2021

Can confirm it still fails on s 5.0.0.2012

@rmarinho rmarinho added 5.0.0 Regression on 5.0.0 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression labels Mar 9, 2021
@manojkulkarni30
Copy link

I was having the same problem, but the workaround provided by @oscarjaergren worked for me.

Xamarin Forms Version: 5.0.0.2012

@djhango
Copy link

djhango commented May 27, 2021

Workaround provided by @oscarjaergren worked, although I ran into issues with VeritcalLayoutOptions not being applied correctly to items within the nested ScrollView. Wrapped it within a ContentView instead seems to work okay for my purposes

@thisismyself
Copy link

Might that be related to #13597 ? There, the workaround is also to add a ContentView around the ScrollView.

@holecekp
Copy link

holecekp commented Dec 5, 2021

I have the same problem. Is a fix for this planned soon? This bug causes some controls in my app to be outside the visible area of the screen (when they become visible by setting IsVisible=true).

@jfversluis
Copy link
Member

@holecekp and others, I see people suspecting this might be linked to #15067 as well? Would you be able to verify that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
5.0.0 Regression on 5.0.0 a/scrollview i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often i/regression p/Android t/bug 🐛
Projects
None yet
Development

No branches or pull requests