Background Image of Generic Tile out of boundaries
OpenUI5 version: 1.71.26 Browser/version (+device/version): latest chrome/firefox
URL (minimal example if possible): https://sapui5.hana.ondemand.com/1.71.26/#/entity/sap.m.GenericTile/sample/sap.m.sample.GenericTileAsKPITile User/password (if required and possible - do not post any confidential information here):
Steps to reproduce the problem:
- Create a generic tile
- Set a background image for the tile
What is the expected result?
The background image is shown correctly inside the tile
What happens instead?
The background image goes over tile boundaries (about 1px on top)
Any other information? (attach screenshot if possible)

Hello @marc4F ,
Thank you for sharing this finding. I've created an internal incident 2070381706 The status of the issue will be updated here in GitHub.
Regards, Petar
Hello @marc4F ,
This issue is not reproducible in generic tile control version 1.82. Adding the snippx for your reference. If still the issue is reproducible, do the required changes in the given snippx link so that i can have a look into it.
(internal link deleted by @codeworrior)
Thanks, Madhu
Hello @marc4F ,
This issue is not reproducible in generic tile control version 1.82. Adding the snippx for your reference. If still the issue is reproducible, do the required changes in the given snippx link so that i can have a look into it.
(internal link deleted by @codeworrior)
Thanks, Madhu
This is a problem with newest patch level of 1.71 (1.71.26).
See in the official SAP Control example: https://sapui5.hana.ondemand.com/1.71.26/#/entity/sap.m.GenericTile/sample/sap.m.sample.GenericTileAsKPITile
I have checked in the given version 1.71.26 also but still the issue is not reproducible. In the above screenshot, the background image is shown correctly inside the tile. If still, its same for you then check the margin properties and better to create snippx for same, otherwise please close this ticket.
Thanks,
@Madhu552 please check your own screenshot, it already shows the problem.
The background repeats in the y-direction and a small portion from the bottom of the image (water waves, only a few pixels high) can be seen at the top border of the tile. I didn't check the CSS in detail, but I guess the size of the tile and the size of the background image don't match and background-repeat is not switched off.

(Note: I've taken another screenshot on my own to get rid of the blue overlay from the dev tools)
Hi,
This is the issue of margin. So, if you remove these two "sapUiTinyMarginBegin" , "sapUiTinyMarginTop" css. Then it will not show that space there.
Attached the screensort for your reference.

Hi @Madhu552
I think there is still a misunderstanding. We dont have a problem with the margin between tiles.
Its like @codeworrior said, the repeating background image is shown at the top of the tile border:

Also your screenshot shows the sample of 1.82. There this problem does not occure. To see this problem, you need to use latest patch level of 1.71 (1.71.26): https://sapui5.hana.ondemand.com/1.71.26/#/entity/sap.m.GenericTile/sample/sap.m.sample.GenericTileAsKPITile
Greetings Marco
Hi @marc4F
I have added the screenshort below:

If you add the given css in the version 1.71 which i have added in the screensort "SapMGTBackgroundImage" then that overlapping thing will not be visible which is similar as we are doing in 1.82 version.
Hi @Madhu552
thanks, this is a good temporary fix. Will this also be fixed in a new patch level of 1.71? We can't upgrade to 1.82
Greetings Marco
Hi,
The changes are downport to 1.71 version now. [internal link deleted by @codeworrior]
Thanks, Madhu
Could you please close this ticket if your issue is resolved.
I cant access your provided link
okay no problem. But the downport is done for version 1.71.