function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PlainviewPlainview 

Sidebar VF component not displaying correctly.

Hello all,

So, we have developed a sidebar component that is a pricing calculator for our Sales Rep. It is set-up as a Home Page Componenet and is a Visualforce Page.

On the Home page, it works/functions/appears fine:

View on Home Page Layout

... and looks like this when you click on the other object tabs. But, as soon as we click through to a specific record on the other tabs, it goes wonky:

User-added image
It appears to be displaying a portion of the Home page.

Here's (some of) the code from the VF page:


<apex:page standardController="Opportunity" extensions="OpportunityCustomLayoutExtension" sidebar="false" showHeader="false">
<body>
<style>
body {
font-size: 9px;
background-color: #cfeef8; }
.inputClass {
}
</style>
<apex:form id="theForm">
<table>
(all the table stuff here that creates the input fields etc.)
 </table>
</apex:form>
</body>
</apex:page>

Is there some way I need to wrap the whole thing up so it will display properly?

Thanks for any assistance in advance!


 
AbdelhakimAbdelhakim
hi,

Try to use this :
<apex:page standardController="Opportunity" extensions="OpportunityCustomLayoutExtension" sidebar="false" showHeader="false">

<body class="mypage">
<style>
.mypage {
font-size: 9px;
background-color: #cfeef8; }
.mypage .inputClass {
}
</style>
<apex:form id="theForm">
<table>
(all the table stuff here that creates the input fields etc.)
 </table>
</apex:form>
</body>
</apex:page>

 
PlainviewPlainview
Thanks very much for the suggestion! Unfortunately, no dice; same behavior still.