Bug 20885 - UIImageView can't get shorter than 88 height
Summary: UIImageView can't get shorter than 88 height
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS Designer ()
Version: unspecified
Hardware: Macintosh Mac OS
: Normal normal
Target Milestone: master
Assignee: Bugzilla
: 22634 ()
Depends on:
Reported: 2014-06-25 12:49 UTC by wpliao1989
Modified: 2015-02-06 08:50 UTC (History)
8 users (show)

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

Sample code (9.66 KB, application/zip)
2014-06-25 12:49 UTC, wpliao1989

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:

Description wpliao1989 2014-06-25 12:49:04 UTC
Created attachment 7181 [details]
Sample code

This happens in iOS designer. When a view controller is a child of navigation controller, an UIImageView within the view of that view controller is not able to get shorter than 88 of height.

If the navigation bar setting of the view controller is set to inferred, which means that bar is presented, the imageview can't get shorter than 88.

If it is set to none, there's no such weird behaviour.

The details are illustrated in the sample code attached.
Comment 1 Ram Chandra 2014-06-26 05:41:53 UTC
I have checked this issue and with the help of bug description I am able to reproduce this issue.

Steps to reproduce

1. Open the attached sample on XS. 
2. Decrease the height of Imagebar which is on view controller that contain title bar.
3. Unable to decrease the size of Image bar. 
4. Change the viewcontroller "Top bar" setting to "None" now we can change the Imageview height.

I observed that I am unable to decrease the height of imageview when view controller's "Top bar" property is not set to none. It's default min size is set to 88 and we are not able to decrease the size of Image view less than 88. If we set "Top bar" property to "None" we are able to decrease the size of Image view.

Screencast: http://www.screencast.com/t/kQB5kwfOvF

Environment Info:

Mac OS X 10.9.3
Xamarin Studio:5.0.1 (build 3)
Xamarin.iOS : (Enterprise Edition)
Xcode 5.1 (5084)

Build Information

Release ID: 500010003
Git revision: f94ee866936d25105704eb63728ad5a981eda0a4
Build date: 2014-06-04 12:19:12-04
Xamarin addins: 1a6044e8321ea07e03a56b5381951686c82fed8b
Comment 2 Alex Corrado [MSFT] 2014-09-10 18:47:08 UTC
This is related to #21076 and consequently fixed.
Comment 3 Arpit Jha 2014-09-12 05:09:44 UTC
*** Bug 22634 has been marked as a duplicate of this bug. ***
Comment 4 Sunil Kumar 2015-02-06 08:50:59 UTC
I have checked this issue and now this issue works fine. I am able to decrease height of imageview less than 88 when view controller "Top bar" property is set to inferred.

Screencast: http://www.screencast.com/t/Y8FvCVKeuEb

Hence closing this issue.

Environment Info:
=== Xamarin Studio ===

Version 5.7.1 (build 17)
Installation UUID: 561c7a69-0a91-4bae-ad7c-f0c79d594337
	Mono 3.12.0 ((detached/de2f33f)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000076

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: (Enterprise Edition)
Hash: 3b3ef43
Build date: 2015-01-24 09:42:21-0500

=== Xamarin.Android ===

Version: (Enterprise Edition)
Android SDK: /Users/tajinder/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)
		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)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Xamarin.Mac ===

Version: (Enterprise Edition)

=== Build Information ===

Release ID: 507010017
Git revision: 0bc7d3550b6b088ac25b08dcf7bbe73bcc8658b3
Build date: 2015-02-03 19:43:29-05
Xamarin addins: f7b7d34419c9ec24501bfa7c658e80a6305613e0

=== Operating System ===

Mac OS X 10.8.4
Darwin Tajinders-iMac.local 12.4.2 Darwin Kernel Version 12.4.2
    Mon Jun 17 18:00:12 PDT 2013
    root:xnu-2050.45.8~1/RELEASE_X86_64 x86_64