Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20184] When title of button is short, Ti.UI.SIZE doesn't on Android

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
LabelsengTriage, parity, reprod
ReporterJong Eun Lee
AssigneeUnknown
Created2016-01-01T23:47:11.000+0000
Updated2020-01-06T23:00:53.000+0000

Description

Look below capture!. iOS : works! Android : doesn't work! "s", "short", "short!" have same width.
var win = Ti.UI.createWindow({backgroundColor : "white"});
var button1 = Ti.UI.createButton({
    width: Ti.UI.SIZE,
    title: "I'm loooooooooooooong button",
    top : 0,
    height : 50
});
var button2 = Ti.UI.createButton({
    width: Ti.UI.SIZE,
    title: "s",
    top : 60,
    height : 50
});

var button3 = Ti.UI.createButton({
    width: Ti.UI.SIZE,
    title: "short",
    top : 120,
    height : 50
});

win.add(button1);
win.add(button2);
win.add(button3);

win.open();
!https://s3.amazonaws.com/f.cl.ly/items/222T1S3Q451O1P2Z1E2B/iPhone_6_-_iPhone_6___iOS_9_2__13C75_.png?v=f9de0de1!

Comments

  1. Jong Eun Lee 2016-01-01

    !https://s3.amazonaws.com/f.cl.ly/items/0C04120L3X0P3D1G0Z2W/iPhone_6_-_iPhone_6___iOS_9_2__13C75_.png?v=f0f14825|width=500px!
  2. Lee Morris 2017-07-05

    I am able to reproduce this issue with the following environment; Pixel (7.1) 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 Arrow Xcode 8.2 (8C38) Node v4.8.2 Java 1.8.0_131

JSON Source