Framework : SAPUI5 V1.38.39
Problem : when I make an image with mode="Background" the image is not displayed in the view, i took example on Sample to make this and in sample it is displayed
Code:
<html:Div>
<Image src="img/bg_icons.png" mode="Background" backgroundPosition="center" backgroundSize="cover" width="100%" visible="true">
<layoutData>
<FlexItemData growFactor="1"/>
</layoutData>
</Image>
<core:Fragment fragmentName="my.namespace.view.fragment.Milestone" type="XML"/>
</html:Div>
The fragment contain only some text which should appear on the image
The result on the "element":
<span id="__image0" data-sap-ui="__image0" class="sapMImg" role="presentation" aria-hidden="true" alt="" style="background-size: cover; background-position: center center; background-repeat: no-repeat; width: 100%; background-image: url("https://webidetesting.dispatcher.hana.ondemand.com/~1611310755000~/webapp/img/bg_icons.png");"></span>
Hypothesis on the problem origin :
I suppose the problem come from aria-hidden="true"
but I have not idea why aria-hidden="true"
is there.
question from:
https://stackoverflow.com/questions/65880247/image-in-backgound-mode-get-automatically-hidden-fro-sapui5-v1-38-39 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…