Titanium JIRA Archive
Appcelerator Community (AC)

[AC-912] button padding in horizontal layout view not work

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2015-06-30T07:01:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterEthan Chen
AssigneeRadamantis Torres-Lechuga
Created2015-06-23T10:26:49.000+0000
Updated2016-03-08T07:37:13.000+0000

Description

XML:
<View class="horizontal-layout">
    <Button id="btn_0" />
    <Button id="btn_1" />
    <Button id="btn_2" />
    <Button id="btn_3" />
    <Button id="btn_4" />
    <Button id="btn_5" />
    <Button id="btn_6" />
</View>
TSS:
"Button": {
    left: '5dp',
    right: '5dp',
    color: '#817877',
    backgroundColor: '#FFFFFF',
    borderColor: '#CECECE',
    borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
    borderRadius: 5,
    font: {
        fontSize: '16dp'
    },
    title: '一'
}

".days": {
    width: Ti.UI.SIZE,
    height: Ti.UI.SIZE,
    layout: 'horizontal'
}

Attachments

FileDateSize
iOS Simulator Screen Shot 2015年6月23日 18.23.02.png2015-06-23T10:26:40.000+00006368
螢幕快照 2015-06-23 18.23.52.png2015-06-23T10:26:14.000+00007044

Comments

  1. Radamantis Torres-Lechuga 2015-06-30

    To get the desired behavior you must set the width of the button.

JSON Source