Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24211] iOS: Support Ti.UI.TextArea padding (Parity)

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-12-20T03:26:08.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsAndroid, iOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2016-12-12T12:20:05.000+0000
Updated2016-12-22T01:41:32.000+0000

Description

In 6.0.0, we supported the padding value for the TextField and TextArea, but the TextArea one was not implemented for iOS so far. This ticket should change that.

Comments

  1. Hans Knöchel 2016-12-12

    PR: https://github.com/appcelerator/titanium_mobile/pull/8678 Test-Case:
       var win = Ti.UI.createWindow({
           backgroundColor: '#fff'
       });
       
       var field = Ti.UI.createTextField({
           top: 40,
           width: 200,
           height: 40,
           backgroundColor: "#eee",
           padding: {left: 20, right: 20}
       });
       
       var area = Ti.UI.createTextArea({
           top: 200,
           width: 200,
           height: 200,
           backgroundColor: "#eee",
           padding: {left: 20, right: 20, top: 20, bottom: 20}
       });
       
       win.add(field);
       win.add(area);
       win.open();
       
  2. Abir Mukherjee 2016-12-22

    Using this environment: NPM Version: 2.15.9 Node Version: 4.5.0 Mac OS: 10.12.1 Appc CLI: 6.1.0 Appc CLI NPM: 4.2.8 Titanium SDK version: 6.1.0.v20161221030858 Appcelerator Studio, build: 4.8.1.201612050850 Xcode 8.2 iOS Device: 10.0 Fix is validated. I first tried with SDK version 6.0.0, and found that using the demo code, there was no padding in the TextField, or TextArea. With SDK 6.1.0, there was padding between the area/field border and text. I varied the padding value and observed that the padding did change accordingly.

JSON Source