Skip to Content
0
Jun 08, 2018 at 12:56 PM

How can i centering my icon in a TileContent ?

322 Views

Hi, i'm new in SAPui5

How can i centering my icon in a TileContent ?

my code:

<m:Page showHeader="true" title="{i18n>PageTitleMenu}" showFooter="false" showNavButton="false">
		<m:content>
			<!--tile10-->
			<m:GenericTile class="sapUiTinyMarginBegin sapUiTinyMarginTop tileLayout" header="Paramétrage" press="press">
				<m:TileContent>
					<core:Icon src="sap-icon://action-settings" size="40px" color="#031E48"></core:Icon>
				</m:TileContent>
			</m:GenericTile>
		</m:content>
	</m:Page>
</mvc:View>

Because I read In compatibility rules: "As an app developer, never do the following: Never manipulate HTML/CSS via JavaScript or directly via CSS"

So i'm blocked..


Best regards