<mvc:View controllerName="sticky.sticky.controller.View1" xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m">
<Shell id="shell">
<App id="app">
<pages>
<Page id="sticky1" title="{i18n>title}">
<VBox alignItems="End" alignContent="End" justifyContent="End">
<Button icon="sap-icon://lightbulb" text="Get Help" type="Emphasized" width="5px" press="handleUrlPress" class="roundClass"/>
</VBox>
</Page>
</pages>
</App>
</Shell>
</mvc:View>
/* Enter your custom styles here */
.roundClass .sapMBtnInner {
/*button round size*/
background: #4679BD;
box-shadow: 10 20 3px grey;
border-color: solid white;
color: white; /* text colour in button*/
padding: 10px; /*button size*/
text-align: centre; /*text alignment in button*/
text-decoration: none;
display: inline-block;
font-size: 12px;
margin: -200px -200px;
cursor: pointer;
height: 80px;
width: 80px;
position: fixed; /*this one is the main thing for the sticky button*/
opacity: 1;
top: 40rem;
z-index: 500;
border-radius: 50px;
font-family: Arial, Helvetica, sans-serif;
}
.roundClass .sapMBtnText>.sapMBtnIcon {
display: contents;
line-height: 1.9rem; /* Add this line when you are using height as 6rem */
}
.roundClass .sapMBtnInner.sapMBtnText {
padding-left: 0.75rem;
}
.roundClass .sapMBtnContent {
line-height: normal;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |