[AC-912] button padding in horizontal layout view not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-06-30T07:01:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Ethan Chen |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-06-23T10:26:49.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
iOS Simulator Screen Shot 2015年6月23日 18.23.02.png | 2015-06-23T10:26:40.000+0000 | 6368 |
螢幕快照 2015-06-23 18.23.52.png | 2015-06-23T10:26:14.000+0000 | 7044 |
To get the desired behavior you must set the width of the button.