on 09-22-2021 10:41 AM
Hello experts,
I am facing an issue where my ObjectPageLayout pin and collapse icons are overlapping each other.
The code for this
<f:DynamicPage >
<f:content>
<uxap:ObjectPageLayout id="ObjectDetailPageLayout" showTitleInHeaderContent="true" upperCaseAnchorBar="false" useIconTabBar="true" >
<uxap:headerTitle>
<uxap:ObjectPageDynamicHeaderTitle>
<uxap:breadcrumbs>
<Breadcrumbs>
<Link text="{i18n>accelerators}" press="onBackToAccMain" />
<Link text="{selectAccelerator>/title}" enabled="false"/>
</Breadcrumbs>
</uxap:breadcrumbs>
<uxap:expandedHeading>
<Title text="{selectAccelerator>/title}" wrapping="true"/>
</uxap:expandedHeading>
<uxap:actions>
<uxap:ObjectPageHeaderActionButton id="deleteBtn" tooltip="{i18n>delete}" text="{i18n>delete}" press="onDeleteDetail" hideText="false"/>
</uxap:actions>
</uxap:ObjectPageDynamicHeaderTitle>
</uxap:headerTitle>
<uxap:headerContent>
<l:VerticalLayout class="sapUiMediumMarginEnd">
<Text text="{i18n>id}" class="sapUiTinyMarginBottom"/>
<Label class="bigLabel" text="{selectAccelerator>/external_id}" />
</l:VerticalLayout>
<l:VerticalLayout class="sapUiMediumMarginEnd">
<Text text="{i18n>accelerator.table.variant}" class="sapUiTinyMarginBottom"/>
<Label class="bigLabel" text="{selectAccelerator>/variant}" />
</l:VerticalLayout>
<l:VerticalLayout class="sapUiMediumMarginEnd">
<Text text="{i18n>accelerator.table.status}" class="sapUiTinyMarginBottom" />
<l:HorizontalLayout >
<Text class="bigLabel" text="{selectAccelerator>/status}" >
<customData>
<core:CustomData key="colour" value="{selectAccelerator>/status}" writeToDom="true" />
</customData>
</l:HorizontalLayout>
</l:VerticalLayout>
<l:VerticalLayout>
<ObjectAttribute title="{i18n>changedBy}" text="{selectAccelerator>/changedby}"/>
<ObjectAttribute title="{i18n>changedAt}" text="{selectAccelerator>/changedat}"/>
</l:VerticalLayout>
</uxap:headerContent>
<uxap:sections>
.....
</uxap:sections>
</f:content>
</f:DynamicPage >
Please let me know if you have any suggestions on how to fix this issue
Kind Regards,
Buch
Before doing some deep research on the ObjectPageLayout why this is I would suggest you write a little custom css for the Buttons.
There is something messed up with the margins. Both buttons are positioned with "position: absolute" and "left: 50%". Then some (negative and positive) margins have been added to adjust them to each other.
Provide a class for your ObjectPageLayout than something like this should do the trick :
.yourObjectPageLayoutClass .sapFDynamicPage:not(.sapFDynamicPageTitleClickEnabled) .sapFDynamicPageHeaderPinButton {
margin-left: 0;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.