Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
310 views
in Technique[技术] by (71.8m points)

Image in backgound mode get automatically hidden fro SAPUI5 V1.38.39

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(&quot;https://webidetesting.dispatcher.hana.ondemand.com/~1611310755000~/webapp/img/bg_icons.png&quot;);"></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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...