Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28411] iOS:Button font size on backgroundSelectedColor

GitHub Issuen/a
TypeBug
Priorityn/a
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
LabelsiOS
ReporterSebastian Klaus
AssigneeAbir Mukherjee
Created2021-03-29T07:30:42.000+0000
Updated2021-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

FileDateSize
Captura de Pantalla 2021-03-29 a la(s) 1.05.19 a.m..png2021-03-29T07:30:35.000+000023485

Comments

  1. Vijay Singh 2021-03-30

    [~benutzername] Is it happening on iOS or android?
  2. Sebastian Klaus 2021-03-31

    I just tried on iOS for now
  3. Vijay Singh 2021-04-07

    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.
  4. Sebastian Klaus 2021-04-07

    Okay. Good to know that this are different buttons. Thanks

JSON Source