Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Low
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Release 5.1.0
-
Component/s: iOS
-
Labels:
-
Story Points:5
-
Epic Link:
-
Sprint:2015 Sprint 18 SDK
Description
UIPickerView and UIDatePicker are now resizable and adaptive—previously, these views would enforce a default size even if you attempted to resize them. These views also now default to a width of 320 points on all devices, instead of to the device width on iPhone.
Interfaces that rely on the old enforcement of the default size will likely look wrong when compiled for iOS 9. Any problems encountered can be resolved by fully constraining or sizing picker views to the desired size instead of relying on implicit behavior.
Demo code:
var win = Ti.UI.createWindow();
|
var picker = Ti.UI.createPicker({height: 500});
|
var data = [];
|
|
data[0]=Ti.UI.createPickerRow({title:'Bananas'});
|
data[1]=Ti.UI.createPickerRow({title:'Strawberries'});
|
data[2]=Ti.UI.createPickerRow({title:'Mangos'});
|
data[3]=Ti.UI.createPickerRow({title:'Grapes'});
|
|
picker.add(data);
|
picker.selectionIndicator = true;
|
|
win.add(picker);
|
win.open();
|
On iOS8, nothing should change and the height is ignored. On iOS9, the height should be honored and the picker should resize.
Attachments
Issue Links
- mentioned in
-
Page Loading...