-
Notifications
You must be signed in to change notification settings - Fork 804
Make sure UIAlertViews are always rendered vertically #2652
Conversation
Frameworks/UIKit/UIAlertView.mm
Outdated
| delete alertPriv; | ||
|
|
||
| [super dealloc]; | ||
| } |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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)
Frameworks/UIKit/UIAlertView.mm
Outdated
|
|
||
| - (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. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
|
|
DHowett-MSFT
left a comment
There was a problem hiding this 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?
|
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: "dispaly"
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.
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.
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.