Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1514] iOS: add textAlign and verticalAlign support for buttons

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2019-10-30T21:27:38.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 7.5.0
ComponentsiOS
Labelsapi, engTriage, parity, reprod
ReporterThomas Huelbert
AssigneeIngo Muschenetz
Created2011-04-15T02:54:52.000+0000
Updated2020-04-17T15:27:29.000+0000

Description

This was implemented for android as ticket 1479.

support on butons for:

Titanium.UI.TEXT_ALIGNMENT_LEFT
Titanium.UI.TEXT_ALIGNMENT_CENTER
Titanium.UI.TEXT_ALIGNMENT_RIGHT
Titanium.UI.TEXT_VERTICAL_ALIGNMENT_TOP
Titanium.UI.TEXT_VERTICAL_ALIGNMENT_CENTER
Titanium.UI.TEXT_VERTICAL_ALIGNMENT_BOTTOM

there is a test casein kitchenSink at

Comments

  1. Thomas Huelbert 2011-04-15

    incomplete line - should read
    there is a test case in kitchenSink at Controls>Button

  2. Josh Roesslein 2012-07-26

    TIMOB-1476 implemented "textAlign" support for iOS.
  3. Junaid Younus 2012-08-15

    Tested on the iOS simulator using TiSDK 2.2.0v20120814103312, issue still exists.
       var win = Ti.UI.createWindow({backgroundColor: 'white'});
       
       var button = Ti.UI.createButton({
           title: 'Button',
           width: 150,
           height: 70,
           textAlign: Ti.UI.TEXT_ALIGNMENT_RIGHT,
           verticalAlign: Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP
       });
       
       win.add(button);
       win.open();
       
  4. Lee Morris 2017-05-02

    Resolving ticket as Invalid as there is now a new version of Kitchen Sink available and we no longer support the version which relates to this ticket.
  5. Shawn Lipscomb 2017-05-03

    Lee, this ticket has nothing to do with Kitchen Sink. It was incorrectly closed. Please reopen. It looks like textAlign and verticalAlign are still missing from iOS.
  6. Lee Morris 2017-05-03

    [~bitshftr] You are correct, I apologise, I've mixed this up with another ticket. Reopened!
  7. Lee Morris 2017-07-10

    I am able to reproduce this issue with the following environment; iPhone 6 (10.0) Studio 4.9.0.201705302345 Ti SDK 6.1.1 GA Appc NPM 4.2.9 Appc CLI 6.2.2 Ti CLI 5.0.14 Alloy 1.9.11 Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131
  8. Alan Hutton 2019-10-30

    Unable to reproduce. Implemented sometime prior to 8.2.1.GA.

JSON Source