Bug 59319 - Controls in scrollview not selectable once scrolled
Summary: Controls in scrollview not selectable once scrolled
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: Designer ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jérémie Laval
URL:
Depends on:
Blocks:
 
Reported: 2017-09-08 09:08 UTC by JohnRowse
Modified: 2017-09-08 22:10 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report for Bug 59319 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description JohnRowse 2017-09-08 09:08:38 UTC
if you create a scrollview and fill it with more controls than is viewable, so you have to scroll down to see them in the designer, you can no longer select them in the designer.  I have also noticed the scrollview handle in the designer is also very temperamental, and the only way for it to select and scroll is the thin border of the root view, rather than the handle itself.
Comment 1 Jon Douglas [MSFT] 2017-09-08 20:09:04 UTC
(In reply to JohnRowse from comment #0)
> if you create a scrollview and fill it with more controls than is viewable,
> so you have to scroll down to see them in the designer, you can no longer
> select them in the designer.  I have also noticed the scrollview handle in
> the designer is also very temperamental, and the only way for it to select
> and scroll is the thin border of the root view, rather than the handle
> itself.

Have you tried using the Document Outline window? This should allow you to select these items from a hierarchy view.

View-> Other Windows -> Document Outline

Although not a complete fix for this issue, it could potentially help you out. Please let me know if this resolves your current concern and if not, we can CONFIRM this issue. Setting to NEEDINFO temporarily.
Comment 2 JohnRowse 2017-09-08 21:08:04 UTC
Need Info??

You have not even made it clear what part of my issue you are talking about.  I have told you how to recreate how to show your software is broken.  It is your job to confirm, and if so, to mark as such.  It is not, not broken, based on whether I return further information or not.

Is your scroll view working as designed?  i.e.

A)  Can you select controls in the designer, that require the scroll view to first be scrolled  If not, please mark as 'confirmed'.

B) Should the scroll view be scrollable by selecting its handle, rather than the root view border.  If so, and you can also not use the handle, please mark as 'confirmed'.

I am not on your development team, nor your payroll, so should not have to do your work for you.  Is a 'confirmation' flag only for individuals who go above and beyond?  Is this paid for propitiatory software, or community software?
Comment 3 Jon Douglas [MSFT] 2017-09-08 22:10:02 UTC
Hi John,

Yes, the bug was marked as NEEDINFO temporarily awaiting a response regarding if the Document Outline feature helps workaround your reported issue of selecting controls in a ScrollView. It does not mean I'm abandoning this designer surface issue or that it will sit in NEEDINFO for an outstanding period of time. Rather it was a request to gather information from you while I conduct a deeper investigation for our designer team on this issue. I was mainly providing an initial reply letting you know that there is a hidden window that could help you out until I was able to conduct further investigation.

I apologize in advance if there were any negative implications between the bug status changes. 

## Investigation for the Designer team

Here is a video demonstrating being able to select controls in a ScrollView:

https://www.dropbox.com/s/r625vqmzsai9ju6/2017-09-08_15-34-32.MP4?dl=0

This by no means is perfect and looks like it needs work as the visual indications of the control's bounds do not always appear. The placeholder image inside an imageview also does not seem to fall in it's own bounds. The ScrollView "scrollbar" has a very shallow hitbox if the Designer is not zoomed in or zoomed out. "Fit to Window", you will notice my mouse is a bit to the left of the actual visual representation. Finally, when scrolling down the ScrollView and selecting, it instead sometimes selects the ScrollView instead (You can see the respective view selection in the Document Outline window). 

I am marking this issue as CONFIRMED as I was able to demonstrate this behavior with a File->New Xamarin.Android Project using the following version information:

Visual Studio 15.3.3
Xamarin 4.6.0.299
Xamarin.Android 7.4.0.21

## Reproduction Layout:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <ScrollView
        android:minWidth="25px"
        android:minHeight="25px"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:id="@+id/scrollView1">
        <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
            <ImageView
                android:src="@android:drawable/ic_menu_gallery"
                android:layout_width="match_parent"
                android:layout_height="600dp"
                android:id="@+id/imageView6" />
            <ImageView
                android:src="@android:drawable/ic_menu_gallery"
                android:layout_width="match_parent"
                android:layout_height="600dp"
                android:id="@+id/imageView7" />
            <ImageView
                android:src="@android:drawable/ic_menu_gallery"
                android:layout_width="match_parent"
                android:layout_height="600dp"
                android:id="@+id/imageView8" />
        </LinearLayout>
    </ScrollView>
</LinearLayout>