openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Background Image of Generic Tile out of boundaries

Open marc4F opened this issue 6 years ago • 13 comments

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:

  1. Create a generic tile
  2. 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) image

marc4F avatar Oct 06 '20 11:10 marc4F

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

dimovpetar avatar Oct 07 '20 08:10 dimovpetar

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

Madhu552 avatar Oct 12 '20 04:10 Madhu552

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

marc4F avatar Oct 12 '20 05:10 marc4F

KPITile

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 avatar Oct 12 '20 18:10 Madhu552

@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.

image

(Note: I've taken another screenshot on my own to get rid of the blue overlay from the dev tools)

codeworrior avatar Oct 12 '20 19:10 codeworrior

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. tile

Madhu552 avatar Oct 14 '20 05:10 Madhu552

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: image

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

marc4F avatar Oct 14 '20 07:10 marc4F

Hi @marc4F

I have added the screenshort below: tile

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.

Madhu552 avatar Oct 22 '20 04:10 Madhu552

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

marc4F avatar Oct 23 '20 06:10 marc4F

Hi,

The changes are downport to 1.71 version now. [internal link deleted by @codeworrior]

Thanks, Madhu

Madhu552 avatar Nov 02 '20 10:11 Madhu552

Could you please close this ticket if your issue is resolved.

Madhu552 avatar Nov 03 '20 10:11 Madhu552

I cant access your provided link

marc4F avatar Nov 03 '20 10:11 marc4F

okay no problem. But the downport is done for version 1.71.

Madhu552 avatar Nov 03 '20 11:11 Madhu552