Bug 20920 - Can't use regular mouse on MacOS to scroll scrolled windows
Summary: Can't use regular mouse on MacOS to scroll scrolled windows
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 5.0.1
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2014-06-26 17:03 UTC by William Rodriguez
Modified: 2014-07-08 11:29 UTC (History)
2 users (show)

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


Attachments
Asset Catalog Screenshot (320.11 KB, image/png)
2014-06-26 17:03 UTC, William Rodriguez
Details
Screen recording with no scrollbar (5.19 MB, video/mp4)
2014-07-07 15:27 UTC, William Rodriguez
Details


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 on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description William Rodriguez 2014-06-26 17:03:31 UTC
Created attachment 7204 [details]
Asset Catalog Screenshot

The bottom part of last row of the asset catalog appear obscured by other parts of the UI (See screenshot).

System information:

=== Xamarin Studio ===

Version 5.0.1 (build 3)
Installation UUID: 17028b3d-0b4c-4d8a-9b18-6cfb9c1c5f80
Runtime:
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.2.4.4 (Business Edition)
Hash: 5485ac2
Branch: 
Build date: 2014-06-11 13:44:48-0400

=== Xamarin.Android ===

Version: 4.12.5 (Business Edition)
Android SDK: /Users/william/Development/adt-bundle-mac-x86_64/sdk
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.2   (API level 17)
Java SDK: /usr
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Build Information ===

Release ID: 500010003
Git revision: f94ee866936d25105704eb63728ad5a981eda0a4
Build date: 2014-06-04 12:19:12-04
Xamarin addins: 1a6044e8321ea07e03a56b5381951686c82fed8b

=== Operating System ===

Mac OS X 10.9.3
Darwin MabookPro 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 1 Ram Chandra 2014-06-27 07:54:13 UTC
I tried to reproduce this issue but I am unable to reproduce this issue.

Steps I have followed:

1. Create an iPhone "Single View Application". 
2. Create asset catalogs ( Click on Info.plist=> under "Iphone icon" from "Source" drop down select "Create Asset Catalogs" => Under the "iPhone Launches images" on the "Source" option click on "Migrate to asset catalog)
3. Click on "Resources" directory and open "Images.xcassets" directory.
4. Click on "Launch Image".

Screencast: http://screencast.com/t/uINoeczpty

Could you please try the same to open with maximize window of XS. ( click on the green button on the top left side of XS screen) ?
 
Environment Info

=== Xamarin Studio ===

Version 5.0.1 (build 3)
Installation UUID: ff0c16c6-3c75-46d8-ac56-56c3b56e2c76
Runtime:
	Mono 3.4.0 ((no/954ed3c)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 304000214

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.Mac ===

Xamarin.Mac: 1.8.0.8

=== Xamarin.Android ===

Version: 4.12.4 (Business Edition)
Android SDK: /Users/360_macmini/Desktop/android-sdk-macosx
	Supported Android versions:
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)
		4.2   (API level 17)
		4.3   (API level 18)
		4.4   (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Xamarin.iOS ===

Version: 7.2.4.4 (Business Edition)
Hash: 5485ac2
Branch: 
Build date: 2014-06-11 13:44:48-0400

=== Build Information ===

Release ID: 500010003
Git revision: f94ee866936d25105704eb63728ad5a981eda0a4
Build date: 2014-06-04 12:19:12-04
Xamarin addins: 1a6044e8321ea07e03a56b5381951686c82fed8b

=== Operating System ===

Mac OS X 10.9.3
Darwin Apples-iMac.local 13.2.0 Darwin Kernel Version 13.2.0
    Thu Apr 17 23:03:13 PDT 2014
    root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
Comment 2 Jeffrey Stedfast 2014-06-27 10:41:13 UTC
Ram,

This is probably an issue of screen size - I assume the original submitter is probably using an 11" or 13" MacBook Air or something while you are using, what I assume, is a 21" or 27" screen with much higher resolution.

I probably just need to make the screen scrollable.
Comment 3 William Rodriguez 2014-06-27 11:21:52 UTC
I'm using a Retina Macbook Pro 15' with the screen resolution set at the default setting (HiDPI 1440x900). The issue also happens at 1680x1050
Comment 4 Jeffrey Stedfast 2014-06-27 12:01:51 UTC
The iMac that Ram is using is probably 2560x1440 :-)

Anyways, thanks for the info on your screen resolution.
Comment 5 Jeffrey Stedfast 2014-07-02 14:22:41 UTC
Hmmm, this is already packed into a scrolled window.

William: are you able to scroll to see the last row of icons?
Comment 6 William Rodriguez 2014-07-07 15:21:36 UTC
No, as you can see in the screenshot there's no scrollbar (I have a regular mouse attached to the Mac)
Comment 7 Jeffrey Stedfast 2014-07-07 15:24:07 UTC
Very strange, it is in a scrolled window for me.

On Mac, the scrollbars disappear until you try to scroll. Try scrolling with your mouse-wheel.
Comment 8 William Rodriguez 2014-07-07 15:27:32 UTC
Created attachment 7288 [details]
Screen recording with no scrollbar
Comment 9 William Rodriguez 2014-07-07 15:29:53 UTC
If you attach a regular mouse (Non Apple) on a Mac the scrollbars become always visible. I have attached a video were I resize Xamarin Studio's window. I have a regular mouse attached to the Mac and I'm also unplugging it in the middle of the video to test the laptop's trackpad. As you can see nothing happens.
Comment 10 Jeffrey Stedfast 2014-07-07 15:56:31 UTC
We aren't using the Cocoa widgets, we're using Gtk, so it just emulates the Cocoa look & feel (but obviously not perfectly).

My point is that resizing the window won't make the scrollbars show up, you have to actually scroll with the scroll wheel or something.

Anyway, the while page is inside of a scrolled window, so it's definitely scrollable. I checked the code and I checked the behavior if resizing it as small as I could and then using my mouse to scroll.

Moving this to "General" (since clearly this will affect a lot more than just this asset catalog page if scrollbars don't work for you with a regular mouse).
Comment 11 Mikayla Hutchinson [MSFT] 2014-07-07 21:34:26 UTC
Jeff - our GTK overlay scrollbars patch does implement the behaviour where scrollbars become visible when a mouse is attached. In the screencast here it really does look as if the widget is not shrinking. I look a look at the code and although AssetEditorViewContent is using a ScrolledWindow, I don't think AssetFolderViewContent is.
Comment 12 Jeffrey Stedfast 2014-07-08 06:12:32 UTC
We tested this out on Alan's machine and it works fine there.
Comment 13 Jeffrey Stedfast 2014-07-08 06:28:15 UTC
n/m, I get what you are saying... I'll check that in a bit.
Comment 14 Jeffrey Stedfast 2014-07-08 11:29:50 UTC
Yep, you are correct... it was packed in a scrolled window when the asset catalog was opened via opening the Contents.json but not when opening the .xcassets folder.

Anyway, this is fixed now.