[TIMOB-28411] iOS:Button font size on backgroundSelectedColor
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | iOS |
Reporter | Sebastian Klaus |
Assignee | Abir Mukherjee |
Created | 2021-03-29T07:30:42.000+0000 |
Updated | 2021-04-07T20:02:02.000+0000 |
Description
If I run this code...
<Alloy>
<Window>
<View layout="vertical" height="Ti.UI.SIZE">
<Button backgroundColor="#8fb63e" top="10" height="40" width="300">This is a test</Button>
<Button backgroundColor="#8fb63e" top="10" height="40" width="300" backgroundSelectedColor="red">This is a test</Button>
</View>
</Window>
</Alloy>
the fontsize on the second button differs to the first as you can see in the image
Attachments
File | Date | Size |
---|---|---|
Captura de Pantalla 2021-03-29 a la(s) 1.05.19 a.m..png | 2021-03-29T07:30:35.000+0000 | 23485 |
[~benutzername] Is it happening on iOS or android?
I just tried on iOS for now
In case of adding properties backgroundSelectedColor, backgroundImage or backgroundSelectedImage the default button type is UIButtonTypeCustom otherwise UIButtonTypeSystem. In both cases default font is different and text color is also different. If you want to have same font use [font](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Button-property-font) property.
Okay. Good to know that this are different buttons. Thanks