Bug 20924 - Simulated Metrics for Freeform in iOS Designer are broken.
Summary: Simulated Metrics for Freeform in iOS Designer are broken.
Status: VERIFIED FIXED
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: iOS Designer ()
Version: 3.0
Hardware: PC Windows
: Normal normal
Target Milestone: 3.8
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2014-06-26 18:45 UTC by Jon Goldberger [MSFT]
Modified: 2014-11-07 12:17 UTC (History)
9 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 on Developer Community 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:
VERIFIED FIXED

Description Jon Goldberger [MSFT] 2014-06-26 18:45:47 UTC
iOS Designer latest Alpha release, Xamarin 3.1.204. On Mac I have  XI 7.9.278 ( I had to use that to even have the storyboard render... 7.2.6.3 is too old for this version if XI for VS.) Full version information for both is below.

Steps to repro:

1. Open Visual Studio 2013 Update 2
2. Create a new iPad Master/Detail project.
3. Open the storyboard file in iOS Designer.
4. Drag a new View Controller onto the canvas.
5. Select the View Controller and open the Properties Widget tab.
6. In the Storyboard Simulated Metrics section, change the size to Freeform.
7. Open the Layout tab of the properties pane. 
8. Note the size is correct. 
9. Enter new values for width and height, for instance 100 x 100.

Expected result: View controller will be resized to a width and height of 100 x 100.

Actual result: View Controller is resized to a width and height of 1 x 1.

At this point the range of acceptable values for width and height seem to be 0.0 to 1.0. Try entering any value higher than 1 in either the width or height field and it will be changed to 1. Enter a value between 0 and 1 and the value will be reflected. 

Note: This does _not_ occur in iOS Designer for XS. 

----------------------------------------------------------------
Version info:

Visual Studio:
Microsoft Visual Studio Ultimate 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Ultimate

Architecture and Modeling Tools   06181-004-0451031-02209
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2013   06181-004-0451031-02209
Microsoft LightSwitch for Visual Studio 2013

Office Developer Tools - May 2014 Update ENU   06181-004-0451031-02209
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU

Team Explorer for Visual Studio 2013   06181-004-0451031-02209
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06181-004-0451031-02209
Microsoft Visual Basic 2013

Visual C# 2013   06181-004-0451031-02209
Microsoft Visual C# 2013

Visual C++ 2013   06181-004-0451031-02209
Microsoft Visual C++ 2013

Visual F# 2013   06181-004-0451031-02209
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451031-02209
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06181-004-0451031-02209
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.2.50425
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.1.20409.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

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

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SAPReferenceManager   1.0
Manages References to Shared Projects

SQL Server Data Tools   12.0.40403.0
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools   1.1
Windows Azure Mobile Services Tools

Windows Azure Tools   2.3
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.3.20320.1602

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.1.204.0 (e9b5840803bbb501c8109c97e94a9bd5e64c7bce)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android
---------------------------------------------

Xamarin Studio on Mac: 
=== Xamarin Studio ===

Version 5.1.1 (build 1)
Installation UUID: 2dc9022f-f9a8-424f-8284-bf224cbbfde0
Runtime:
	Mono 3.6.0 ((no/f6ef3e7)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 306000000

=== Xamarin.Android ===

Version: 4.14.0 (Business Edition)
Android SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86
	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)

=== Apple Developer Tools ===

Xcode 5.1.1 (5085)
Build 5B1008

=== Xamarin.iOS ===

Version: 7.9.0.278 (Business Edition)
Hash: e9d8eea
Branch: 
Build date: 2014-06-19 16:21:14-0400

=== Xamarin.Mac ===

Version: 1.8.0.8

=== Build Information ===

Release ID: 501010001
Git revision: 5f2066e8f900f94ed17646f2c32637190addd019
Build date: 2014-06-19 17:11:21-04
Xamarin addins: 4072f200bfd429706bec44bfa9ebf698f9439b67

=== Operating System ===

Mac OS X 10.9.3
Darwin hostname 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 Tajinder Singh 2014-06-27 02:39:22 UTC
I am also getting same behavior with VS. However, This is working fine with XS.
This is the screencast for the same: http://www.screencast.com/t/Ibl4ZGKg7g
VS Trace: https://gist.github.com/saurabh360/856dfd7a8995980909d4


Microsoft Visual Studio Professional 2013
Version 12.0.30501.00 Update 2
Microsoft .NET Framework
Version 4.5.51641

Installed Version: Professional

LightSwitch for Visual Studio 2013   06177-004-0444002-02101
Microsoft LightSwitch for Visual Studio 2013

Office Developer Tools - May 2014 Update ENU   06177-004-0444002-02101
Microsoft Office Developer Tools for Visual Studio 2013 - May 2014 Update ENU

Team Explorer for Visual Studio 2013   06177-004-0444002-02101
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06177-004-0444002-02101
Microsoft Visual Basic 2013

Visual C# 2013   06177-004-0444002-02101
Microsoft Visual C# 2013

Visual C++ 2013   06177-004-0444002-02101
Microsoft Visual C++ 2013

Visual F# 2013   06177-004-0444002-02101
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06177-004-0444002-02101
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06177-004-0444002-02101
Windows Phone SDK 8.0 - ENU

ASP.NET and Web Tools   2013.2.50425
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Windows Azure Web Sites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Windows Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.1.20409.0
For additional information, visit http://www.asp.net/

Common Azure Tools   1.1
Provides common services for use by Azure Mobile Services and Windows Azure Tools.

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

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

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SQL Server Data Tools   12.0.30919.1
Microsoft SQL Server Data Tools

Windows Azure Mobile Services Tools   1.1
Windows Azure Mobile Services Tools

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.1.214.0 (9f4f8f16b8e92ad1d581ae574180654639cfdae1)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android
Comment 2 Florian Dahn 2014-07-30 18:43:56 UTC
Same issue here...

using Visual Studio 2012 and Xamarin 3.1.228.0

Thanks for taking a look
Comment 3 Alan McGovern 2014-07-30 20:04:02 UTC
Does this happen with the latest release, which is 3.3.x?  I think this was an issue we fixed in that release. If not, we'll look into getting it fixed asap.
Comment 4 Florian Dahn 2014-07-30 20:27:16 UTC
Im Sorry Alan,

i had updated on the Beta Channel now, and now i'am on Version:

Xamarin 3.3.44.0

But the issue stays there, could you take a look again please ?

Thanks.
Comment 5 Florian Dahn 2014-07-30 20:31:08 UTC
And one additional thing, the height Input field is to small, there is not enough place to add a three Digit number in one line.

Take a look here: http://img1.myimg.de/layout95176.png

Thanks
Comment 6 Ryan Jauregui 2014-07-31 17:00:10 UTC
I can also confirm that I am experiencing the same issue.

Visual Studio 2013 Update 2 
Xamarin 3.3.44.0
Comment 7 Alan McGovern 2014-09-25 12:08:47 UTC
This seems to work just fine in the latest builds. This is what happens for me when I alter the size of a viewcontroller in freeform mode: http://screencast.com/t/oBupal4TIG

If newer stable/beta/alpha release exhibit the issue you describe, can you send us a copy of the storyboard?
Comment 8 Ryan Jauregui 2014-09-29 19:16:24 UTC
@Alan, I sent you a copy of my storyboard which appears to still be exhibiting the issue.
Comment 9 Alan McGovern 2014-10-22 11:42:21 UTC
@Ryan, I just tested with your storyboard and I still cannot reproduce the issue. Is there a specific View Controller which exhibits the problem or is it every view controller for you?
Comment 10 Ryan Jauregui 2014-10-22 11:59:12 UTC
@Alan, It does not seem to matter which View Controller I try to change, they all appear to cap out at the height/width of 1 as shown in the screen cast above. I should be running latest beta, I've attached my VS output below.

Let me know what else I can provide to you.

--

Microsoft Visual Studio Ultimate 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.50938

Installed Version: Ultimate

Architecture and Modeling Tools   06181-004-0451047-02345
Microsoft Architecture and Modeling Tools
    
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.

LightSwitch for Visual Studio 2013   06181-004-0451047-02345
Microsoft LightSwitch for Visual Studio 2013

Team Explorer for Visual Studio 2013   06181-004-0451047-02345
Microsoft Team Explorer for Visual Studio 2013

Visual Basic 2013   06181-004-0451047-02345
Microsoft Visual Basic 2013

Visual C# 2013   06181-004-0451047-02345
Microsoft Visual C# 2013

Visual C++ 2013   06181-004-0451047-02345
Microsoft Visual C++ 2013

Visual F# 2013   06181-004-0451047-02345
Microsoft Visual F# 2013

Visual Studio 2013 Code Analysis Spell Checker   06181-004-0451047-02345
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.

Windows Phone SDK 8.0 - ENU   06181-004-0451047-02345
Windows Phone SDK 8.0 - ENU

Application Insights Tools for Visual Studio Package   1.0
Application Insights Tools for Visual Studio

ASP.NET and Web Tools   12.3.50717.0
Microsoft Web Developer Tools contains the following components:
Support for creating and opening ASP.NET web projects
Browser Link: A communication channel between Visual Studio and browsers
Editor extensions for HTML, CSS, and JavaScript
Page Inspector: Inspection tool for ASP.NET web projects
Scaffolding: A framework for building and running code generators
Server Explorer extensions for Microsoft Azure Websites
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure

ASP.NET Web Frameworks and Tools 2012.2   4.1.21001.0
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563

ASP.NET Web Frameworks and Tools 2013   5.2.20703.0
For additional information, visit http://www.asp.net/

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

Microsoft Advertising SDK for Windows Phone   
Microsoft Advertising SDK for Windows Phone
Build 

Microsoft Azure Mobile Services Tools   1.2
Microsoft Azure Mobile Services Tools

Microsoft Azure Tools   2.4
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.4.20730.1601

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

Office Developer Tools for Visual Studio 2013 ENU   12.0.30626
Microsoft Office Developer Tools for Visual Studio 2013 ENU

PowerShell Tools   1.2
Provides file classification services using PowerShell

PreEmptive Analytics Visualizer   1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

SAPReferenceManager   1.0
Manages References to Shared Projects

SQL Server Data Tools   12.0.40706.0
Microsoft SQL Server Data Tools

Windows Azure Tools   2.3
Windows Azure Tools for Microsoft Visual Studio 2013 - v2.3.20320.1602

Windows Phone 8.1 SDK Integration   1.0
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   3.8.13.0 (bac482f9243027fe741cdc40d8b896113d34cf7f)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android   4.18.0.34 (3b7ef0a796e8744972c48034403a6e7cb7ec189e)
Visual Studio plugin to enable development for Xamarin.Android.

Xamarin.iOS   8.2.0.0 (13fec5ef6bd1d2992ae58cc5147d0e3f988792ca)
Visual Studio extension to enable development for Xamarin.iOS.
Comment 11 Alan McGovern 2014-10-22 12:03:09 UTC
I can trigger it. Looking into a fix now.
Comment 12 Alan McGovern 2014-10-23 06:51:18 UTC
This has been fixed now. I'm not sure which release it will end up in, but do keep an eye on the release notes for Visual Studio and you will see it as a line item when there's a release containing the fix.

Thanks for reopening the issue!
Comment 13 Mohit Kheterpal 2014-11-07 07:07:13 UTC
I have checked this issue and this issue is working fine as shown in screencast : http://screencast.com/t/v5QhOnLbcOu6

Using XVS 3.8.113

Hence closing this issue.