You need to sign in to do that
Don't have an account?
Anthony Williams 34
The Lightning Experience header and sidebar in visualforce are suppressed
I have been building a VF page to run in lighting and I noticed recently that the Lightning Experience sidebar has been suppressed. Does anyone know if the lighting experience has set of reserved style classes? I built styling section for the VF page as seen below:
<head>
<style>
body {
padding: 0;
margin: 0;
font-family: Helvetica, Arial, Sans-Serif;
}
#wrap {
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 100%;
background: url("{!$Resource.PTPconnected_bg}") no-repeat top left;
background-size: cover;
}
#masthead {
background-color: #fff;
padding: 40px;
width: 100%;
margin-top: 30px;
}
.ptp-logo {
max-width: 300px;
}
#tweetframe {
width: 90%;
margin: 0 auto;
overflow: hidden;
}
#avatar, #tweet {
float: left;
}
#avatar {
width: 20%;
text-align: right;
padding-top: 60px;
}
#avatar img {
max-width: 200px;
border-radius: 5px;
border: 5px solid #fff;
}
#tweet {
width: 80%;
}
#msg {
box-sizing: border-box;
background-color: #fff;
padding: 60px 80px;
color: #666;
border-radius: 20px;
width: 80%;
position: relative;
font-size: 48px;
line-height: 1.5;
font-weight: 100;
margin: 60px 0 0 60px;
}
#msg:before {
content: '';
position: absolute;
top: 40px;
left: -10px;
width: 40px;
height: 40px;
background-color: #fff;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
</style>
</head>
<head>
<style>
body {
padding: 0;
margin: 0;
font-family: Helvetica, Arial, Sans-Serif;
}
#wrap {
width: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
height: 100%;
background: url("{!$Resource.PTPconnected_bg}") no-repeat top left;
background-size: cover;
}
#masthead {
background-color: #fff;
padding: 40px;
width: 100%;
margin-top: 30px;
}
.ptp-logo {
max-width: 300px;
}
#tweetframe {
width: 90%;
margin: 0 auto;
overflow: hidden;
}
#avatar, #tweet {
float: left;
}
#avatar {
width: 20%;
text-align: right;
padding-top: 60px;
}
#avatar img {
max-width: 200px;
border-radius: 5px;
border: 5px solid #fff;
}
#tweet {
width: 80%;
}
#msg {
box-sizing: border-box;
background-color: #fff;
padding: 60px 80px;
color: #666;
border-radius: 20px;
width: 80%;
position: relative;
font-size: 48px;
line-height: 1.5;
font-weight: 100;
margin: 60px 0 0 60px;
}
#msg:before {
content: '';
position: absolute;
top: 40px;
left: -10px;
width: 40px;
height: 40px;
background-color: #fff;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
</style>
</head>
James Loghry
Can you post the apex:page tag as well? Are you setting showHeader and sidebar = false? Another thing it could be is when you set the margin: 0 for the body styling.
Anthony Williams 34
Here is the page declaration, I thought the showHeader may have been the culprit as well but setting it to true it did not work. <apex:page standardController="Lead" extensions="ptpLeadExtension" action="{!createTweetText}" showchat="true" showHeader="true" >. Let me check the margin setting to see if that helps.