[TIMOB-26464] Windows: Add Ti.UI.Window property "safeAreaPadding"
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-11-20T02:02:52.000+0000 |
Affected Version/s | Release 7.5.0 |
Fix Version/s | Release 8.0.0 |
Components | Windows |
Labels | padding, parity, safearea, window, windows |
Reporter | Joshua Quick |
Assignee | Kota Iguchi |
Created | 2018-10-18T23:56:08.000+0000 |
Updated | 2018-11-20T11:45:53.000+0000 |
Description
*Summary:*
On Android and iOS, we're adding a new "safeAreaPadding" property to
Ti.UI.Window
which returns a Titanium [ViewPadding](https://docs.appcelerator.com/platform/latest/#!/api/ViewPadding) dictionary. This is really only relevant on Android and iOS because it's needed on devices which have camera notches which overlap the screen or when using a translucent StatusBar/NavigationBar. It reports the distance on each edge of the window where the insets/notches overlap the contents of the window.
Please see: [TIMOB-26427] and [TIMOB-26461]
On Windows, we should probably hard-code the padding to all zeros.
https://github.com/appcelerator/titanium_mobile_windows/pull/1297
FR and CR Passed. Waiting on Jenkins build.
*Closing ticket.* Verified fix in SDK version
8.0.0.v20181120013506
. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/1297