+ Start a Discussion
Marco ZeuliMarco Zeuli 

Homepage Visualforce Component - Adjusting Width

i have the following problem:

I made an Homepage Visualforce component to show some info to my customers.
 
<apex:page controller="UserApprovalProcessCtrl" showHeader="true" sidebar="true" >
    <apex:pageBlock html-width="100%">
         my content
    </apex:pageBlock>
</apex:page>
The problem i'm facing is the following:

if I set the attribute showHeader="true" on the apex:page element in my VF page the result is the following:
User-added image

As you can see the component width is different from the others... If i set the attribute showHeader="false" the problem doesn't occur anymore. But i don't want to do that because i want my component to have the Home tab style.

Any idea how to resolve this?
Thank you guys ;)
 
Marco ZeuliMarco Zeuli
Sorry guys, this is the image of before:
User-added image
Patcs_1Patcs_1
Hi Marco

If you are using custom control components for home page, then you can set the width in Iframe, like below.

<iframe style="width:100%;height:150px;" src="/apex/testdialogpage" frameborder="0"></iframe>

P.S - Please mark this as solution by selecting it as best answer if this solves your problem.

Thanks