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

[Bug] Scrollview crop layout when loading async data #14154

Open
marciosouzajunior opened this issue Apr 14, 2021 · 8 comments
Open

[Bug] Scrollview crop layout when loading async data #14154

marciosouzajunior opened this issue Apr 14, 2021 · 8 comments
Labels
a/scrollview i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often t/bug 🐛

Comments

@marciosouzajunior
Copy link

marciosouzajunior commented Apr 14, 2021

Description

When a page contains Scrollview as root element and inside there is a label that loads data from async opetarion, the content is cropped down the page.

Steps to Reproduce

  1. Create a Scrollview layout with label inside
  2. Simulate a awaiting task that loads a long text inside label
  3. Scroll down the page

Expected Behavior

All label contend should be displayed on page

Actual Behavior

A layout part is cropped from page

Basic Information

  • Version with issue: 5.0.0.2012
  • Last known good version: 4.8.0.1821
  • Platform Target Frameworks:
    • Android: 10.0

Environment

Show/Hide Visual Studio info Microsoft Visual Studio Community 2019 Version 16.7.13 VisualStudio.16.Release/16.7.13+31026.100 Microsoft .NET Framework Version 4.8.03761

Installed Version: Community

Azure App Service Tools v3.0.0 16.7.532.28833
Azure App Service Tools v3.0.0

C# Tools 3.7.0-6.20514.1+600c0dadd199296df3ed07dfabdc014563a77f7c
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus 1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Mono Debugging for Visual Studio 16.7.5 (112c7bc)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager 5.7.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Visual Basic Tools 3.7.0-6.20514.1+600c0dadd199296df3ed07dfabdc014563a77f7c
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 10.10.0.0 for F# 4.7 16.7.0-beta.20361.3+3ef6f0b514198c0bfa6c2c09fefe41a740b024d5
Microsoft Visual F# Tools 10.10.0.0 for F# 4.7

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

VisualStudio.DeviceLog 1.0
Information about my package

VisualStudio.Foo 1.0
Information about my package

VisualStudio.Mac 1.0
Mac Extension for Visual Studio

Xamarin 16.7.000.463 (d16-7@5209782)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 16.7.0.495 (remotes/origin/d16-7@79c0c522c)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 16.7.85 (1bcbbdf)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 11.0.2.0 (d16-7/025fde9)
Xamarin.Android Reference Assemblies and MSBuild support.
Mono: 83105ba
Java.Interop: xamarin/java.interop/d16-7@1f3388a
ProGuard: Guardsquare/proguard@ebe9000
SQLite: xamarin/sqlite@1a3276b
Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-7@017078f

Xamarin.iOS and Xamarin.Mac SDK 14.2.0.12 (e0ce49680)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Screenshots

Screenshot_1618399636

Reproduction Link

ScrollviewCrop.zip

@marciosouzajunior marciosouzajunior added s/unverified New report that has yet to be verified t/bug 🐛 labels Apr 14, 2021
@ianthetechie
Copy link

Probably related to #1332 and #14035. Android-specific and has been around for a very long time. I'm not quite sure why this isn't fixed yet as it's a glaring issue.

@danielmeza
Copy link

danielmeza commented Apr 28, 2021

I Fix this by wrapping the <ScrollView> into a <Grid> Like this,

<Grid>
   <ScrollView>
    ...
  </ScrillView>
<Grid>

@jsuarezruiz jsuarezruiz added a/scrollview i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often and removed s/unverified New report that has yet to be verified labels May 3, 2021
@MitchBomcanhao
Copy link

just stumbled into this one... it needs sorting out

@AswinPG
Copy link

AswinPG commented Sep 7, 2021

This happens on ios as well. It's happening randomly.

@roman-skvortsov
Copy link

It happens for me as well. When content size of a scrollview increases (for example I added a validation messaged bound to some variable). When value of that variable changed, the bottom part of the scrollview becomes blank, and height of that blank part is the same height as new height of the validation section
Screen Shot 2021-10-01 at 8 24 33 AM

I set content background to red and scrollview background to blue. The blue art supposed to contain the content, but not just being blue

The problem is weird and still actual.

I saw an advice to downgrade to version 4.8, but it does not sound like a good solution.

@bares43
Copy link

bares43 commented Dec 14, 2021

Any update on this?

@sarapura12
Copy link

any update?

@marciosouzajunior
Copy link
Author

marciosouzajunior commented Jun 27, 2022

Hi guys, I wound not expect any updates on this as XF is dead and MAUI is not ready for production (it will ever be?)

Just use the last known good version or some workaround and move on.

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

No branches or pull requests

9 participants