Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26464] Windows: Add Ti.UI.Window property "safeAreaPadding"

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2018-11-20T02:02:52.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.0.0
ComponentsWindows
Labelspadding, parity, safearea, window, windows
ReporterJoshua Quick
AssigneeKota Iguchi
Created2018-10-18T23:56:08.000+0000
Updated2018-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.

Comments

  1. Kota Iguchi 2018-10-29

    https://github.com/appcelerator/titanium_mobile_windows/pull/1297
  2. Samir Mohammed 2018-11-19

    FR and CR Passed. Waiting on Jenkins build.
  3. Samir Mohammed 2018-11-20

    *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

JSON Source