[TIMOB-24883] Windows: Incorrect child view size when parent view has border
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-07-27T13:18:56.000+0000 |
Affected Version/s | Release 6.1.0 |
Fix Version/s | Release 6.2.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2017-06-23T04:06:19.000+0000 |
Updated | 2017-08-14T11:13:42.000+0000 |
Description
When parent
View
has border, child Views calculates its position and size based on parent border.
var win = Ti.UI.createWindow(),
view0 = Ti.UI.createView({
top: 20,
bottom: 20,
left: 20,
right: 20,
borderColor: 'blue',
borderWidth: 1,
backgroundColor: 'white'
}),
view = Ti.UI.createView({
top: 10,
bottom: 10,
left: 10,
right: 10,
borderColor: 'green',
borderWidth: 10,
backgroundColor: 'red'
});
view.add(view0);
win.add(view);
win.open();
*Actual*
!actual.png|thumbnail!
*Expected (iOS)*
!expected.png|thumbnail!
Attachments
File | Date | Size |
---|---|---|
actual.png | 2017-06-23T04:05:56.000+0000 | 10990 |
expected.png | 2017-06-23T04:05:55.000+0000 | 3788 |
https://github.com/appcelerator/titanium_mobile_windows/pull/1025
6_2_X backport merged in https://github.com/appcelerator/titanium_mobile_windows/pull/1048 Awaiting the build before closing
Verified in 6.2.0.v20170811022027