Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Conversation

@jaredhms
Copy link
Contributor

WoCDisplayMode uses a 'presentationTransform' to rotate the presentation surface for certan apps, but we don't want to use that transform to rotate UIAlertViews (else they render sideways if the app is rotated). This will be handled automatically when we move UIAlertView over Xaml (as we've already done for UIActionSheet), but for now we need to undo the 'presentationTransform' rotation for UIAlertViews.

Fixes #2611.

delete alertPriv;

[super dealloc];
}
Copy link

@DHowett-MSFT DHowett-MSFT Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is impossible to review; did the line endings change? #Resolved

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?? I don't have problem to view this


In reply to: 113998799 [](ancestors = 113998799)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh - nice catch. Reinstall of git seems to have stomped my settings.


In reply to: 113998959 [](ancestors = 113998959,113998799)


- (void) _handleRotation {
// We need to offset the 'presentationTransform' used in WOCDispalyMode, because we always want to render alerts vertically.
// TODO: We'll remove this when we switch UIAlertView over to a Xaml ContentDialog, since rotation will be handled for us.
Copy link
Contributor

@yiyang-msft yiyang-msft Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: if we have WI#, we can put it here so that we don't forget to remove this. #Resolved

Copy link
Contributor Author

@jaredhms jaredhms Apr 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically this whole file will be gutted at that time. I don't think this particular backlog item has been filed on github though... #Resolved

@yiyang-msft
Copy link
Contributor

:shipit:

Copy link

@DHowett-MSFT DHowett-MSFT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is converted to Windows line endings, but our repository is intended to be used with git config core.autocrlf true:

Confirmation:

duhowett@DHOWETT-DEV:/mnt/e/src/WinObjC$ git fetch https://github.com/jaredhms/WinObjC uialertview
git show FETCH_HEAD:remote: Counting objects: 5, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 5 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (5/5), done.
./From https://github.com/jaredhms/WinObjC
 * branch            uialertview -> FETCH_HEAD
duhowett@DHOWETT-DEV:/mnt/e/src/WinObjC$ git show FETCH_HEAD:./Frameworks/UIKit/UIAlertView.mm | xxd | head
00000000: 2f2f 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  //**************
00000010: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  ****************
00000020: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  ****************
00000030: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  ****************
00000040: 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a 2a2a  ****************
00000050: 0d0a 2f2f 0d0a 2f2f 2043 6f70 7972 6967  ..//..// Copyrig

At 0x00000050, the "0d0a" (and everywhere else) is a Windows line ending.

Did you flatten your machine and configure core.autocrlf?

@tadam-msft
Copy link
Member

:shipit:

WoCDisplayMode uses a 'presentationTransform' to rotate the presentation surface for certan apps, but we don't want to use that transform to rotate UIAlertViews (else they render sideways if the app is rotated).  This will be handled automatically when we move UIAlertView over Xaml (as we've already done for UIActionSheet), but for now we need to undo the 'presentationTransform' rotation for UIAlertViews.

Fixes microsoft#2611.
}

- (void) _handleRotation {
// We need to offset the 'presentationTransform' used in WOCDispalyMode, because we always want to render alerts vertically.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "dispaly"

@jaredhms jaredhms merged commit 45c7537 into microsoft:develop Apr 28, 2017
@jaredhms jaredhms deleted the uialertview branch April 28, 2017 21:46
rajsesh pushed a commit that referenced this pull request May 10, 2017
WoCDisplayMode uses a 'presentationTransform' to rotate the presentation surface for certan apps, but we don't want to use that transform to rotate UIAlertViews (else they render sideways if the app is rotated).  This will be handled automatically when we move UIAlertView over Xaml (as we've already done for UIActionSheet), but for now we need to undo the 'presentationTransform' rotation for UIAlertViews.

Fixes #2611.
rajsesh pushed a commit that referenced this pull request May 10, 2017
WoCDisplayMode uses a 'presentationTransform' to rotate the presentation surface for certan apps, but we don't want to use that transform to rotate UIAlertViews (else they render sideways if the app is rotated).  This will be handled automatically when we move UIAlertView over Xaml (as we've already done for UIActionSheet), but for now we need to undo the 'presentationTransform' rotation for UIAlertViews.

Fixes #2611.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants