Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14944] iOS7: Alert Dialog has different text alignment when message is very long, compared to iOS6

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2013-08-30T21:23:35.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 18 API
ComponentsiOS
Labelsios7
ReporterDavide Cassenti
AssigneeIngo Muschenetz
Created2013-08-23T17:20:48.000+0000
Updated2017-03-22T18:09:10.000+0000

Description

Description of the problem

When opening an alert dialog with a very long text (that needs to scroll), the text alignment in iOS6 is left, while on iOS7 is centered.

Test code

var win = Ti.UI.createWindow({
	backgroundColor: 'white'
});
win.open();

var termsAlert = Ti.UI.createAlertDialog({
	message : "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras blandit orci sit amet est feugiat, in volutpat dolor dapibus. Mauris tempus nibh et egestas cursus. Nullam ante tortor, pretium facilisis mattis id, gravida a felis. Pellentesque adipiscing augue nec tortor ullamcorper, non scelerisque neque laoreet. Maecenas ornare rhoncus libero, id elementum diam egestas ac. Nulla facilisi. Fusce sed arcu vitae nunc porttitor congue quis ac neque. Ut eu neque gravida, iaculis velit vel, fringilla nunc. Ut ut neque a erat luctus imperdiet. Pellentesque pellentesque metus ac augue hendrerit, sed sagittis lacus posuere. Quisque eu mauris ante.",
	title : 'Lorem Ipsum',
	Agree : 1,
	Cancel : 0,
	buttonNames : ['Cancel', 'Agree']
}); 

termsAlert.show();

Comments

  1. Blain Hamon 2013-08-23

    [Apple's API](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIAlertView_Class/UIAlertView/UIAlertView.html#//apple_ref/doc/uid/TP40006802) does not expose any way to control text layout, and any changes were a design decision made by Apple. Moving to 'not our bug' or 'won't fix'.
  2. Lee Morris 2017-03-22

    Closing ticket as the issue will not fix and with reference to the above comments.

JSON Source