openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.GenericTile: TileContent exceeds the GenericTile borders if GenericTile is deactivated

Open xLexip opened this issue 3 years ago • 3 comments

OpenUI5 version: 1.105.0

Browser/version: Chrome 106.0.5249.12 (FAIL)

Any other tested browsers: Edge 104.0.1293.63 (FAIL)

What is the expected result? Enabled: image Disabled Untitled

What happens instead? (bottom left corner) Disabled: image

Code Example

<mvc:View
		controllerName="sap.ui.demo.basicTemplate.controller.Home"
		displayBlock="true"
		xmlns="sap.m"
		xmlns:semantic="sap.f.semantic"
		xmlns:l="sap.ui.layout"
		xmlns:mvc="sap.ui.core.mvc">
	
<semantic:SemanticPage
			id="page"
			headerPinnable="false"
			toggleHeaderOnTitleClick="false">

		<semantic:content>
			<l:HorizontalLayout allowWrapping="true">
				<GenericTile class="sapUiSmallMargin tileLayout"
				             systemInfo="Coming soon"
				             frameType="TwoByOne"
				             header="User Management"
				             subheader="Personnel"
				             valueColor="None"
				             press="press">
					<TileContent footer="Users">
						<NumericContent value="0" icon="sap-icon://private" withMargin="false" />
					</TileContent>
				</GenericTile>
				<GenericTile class="sapUiSmallMargin tileLayout"
				             state="Disabled"
				             systemInfo="Coming soon"
				             frameType="TwoByOne"
				             header="Admin Management"
				             subheader="Administration"
				             valueColor="None"
				             press="press">
					<TileContent footer="Users">
						<NumericContent value="0" icon="sap-icon://employee" withMargin="false" />
					</TileContent>
				</GenericTile>
			</l:HorizontalLayout>
		</semantic:content>
	</semantic:SemanticPage>
</mvc:View>

xLexip avatar Aug 26 '22 12:08 xLexip

Hello,

The issue is not reproducible in UI5 demokit samples.

Could you please provide a URL with an example of the isolated control and the issue.

ndeshev avatar Aug 31 '22 10:08 ndeshev

Hey @ndeshev,

thanks for your reply. I experimented a bit further and the error occurs when frameType != OneByOne and systemInfo != "". I've modified a DemoKit sample as an example here: codesandbox.io/s/determined-carlos-34ihlv. The index.html may take a while to load.

xLexip avatar Sep 02 '22 07:09 xLexip

Hello @xLexip , Thank you for sharing this finding. I've created an internal incident 2270115808. The status of the issue will be updated here in GitHub. All the best, Florian

flovogt avatar Sep 06 '22 03:09 flovogt

Hello @xLexip,

This has been fixed from the release 1.108.4.

Regards, Abhishek

Abhi1897 avatar Mar 14 '23 09:03 Abhi1897