[TIMOB-23225] Windows: Ti.UI.SIZE is not working properly on Windows Phone on a container with child views.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-06-14T18:41:41.000+0000 |
| Affected Version/s | Release 5.2.2 |
| Fix Version/s | Release 6.0.0 |
| Components | Windows |
| Labels | Ti.UI.SIZE, Windows, Windows-Phone |
| Reporter | Niels Kok |
| Assignee | Kota Iguchi |
| Created | 2016-04-08T10:02:07.000+0000 |
| Updated | 2016-09-02T16:15:11.000+0000 |
Description
Ti.UI.SIZE is not working properly on Windows Phone on a container with child views.
index.xml
<Alloy>
<Window title="Example">
<View id="imageContainer">
<ImageView id="large" />
<ImageView id="small" />
</View>
</Window>
</Alloy>
index.tss
"Window" : {
backgroundColor: "white"
}
"#imageContainer" : {
height: Ti.UI.SIZE, width: Ti.UI.FILL
}
"#large" : {
image: 'images/large.png',
height: Ti.UI.SIZE, width: Ti.UI.FILL
}
"#large[platform=android]" : {
image: '../../images/large.png'
}
"#small" : {
top: 0, right: 0,
image: 'images/small.png',
height: Ti.UI.SIZE, width: 100
}
"#small[platform=android]" : {
image: '../../images/small.png'
}
Attachments
| File | Date | Size |
|---|---|---|
| 8f1bdc96-2ce1-11e6-9627-6e99aaca5e2a.png | 2016-08-01T01:24:21.000+0000 | 2211 |
| Android.png | 2016-04-08T09:57:05.000+0000 | 53739 |
| iOS.png | 2016-04-08T09:57:05.000+0000 | 27719 |
| Windows.png | 2016-04-08T09:56:41.000+0000 | 14926 |
https://github.com/appcelerator/titanium_mobile_windows/pull/740
*Classic app example*
!8f1bdc96-2ce1-11e6-9627-6e99aaca5e2a.png|thumbnail!var win = Ti.UI.createWindow({ backgroundColor: 'green' }); var view = Ti.UI.createView({ height: Ti.UI.SIZE, width: Ti.UI.SIZE, backgroundColor: 'orange' }); var img1 = Ti.UI.createView({ height: 100, width: Ti.UI.FILL, backgroundColor:'gray' }); var img2 = Ti.UI.createView({ height: 50, width: 50, top: 0, right: 0, backgroundColor: 'red' }); view.add(img1); view.add(img2); win.add(view); win.open();Verified using: OS: Windows 10 Pro Appc core: 6.0.0-37 Appc NPM: 4.2.8-6 Ti SDK: 6.0.0.v20160901034311 TI.UI.SIZE now works correctly for a view with child views Closing ticket