Menu
Welcome, Guest
Username: Password: Secret Key Remember me
Welcome to the Developer forum!
Get all your questions answered here. Learn to integrate calendar in your application.
  • Page:
  • 1

TOPIC: Preview and New event popups are offset in Force.com

Preview and New event popups are offset in Force.com 14 years 6 months ago #159

  • vnehess
  • vnehess's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
I have developed a backend for Force.com platform and i'm seeing one problem.

I have a problem where the popups don't point to the events clicked on.

They are offset downward by 95px

This occurs when the calendar is framed inside the Force.com platform tab row, which is also 95px tall.

it appears that the popup location is looking outside it's iframe to establish the top of window.

i'll include a picture, this is in firefox, using the latest premium 1.3.6

if i turn off the header from Force.com Visualforce pages, it works correctly, but i need the tab row to be there




can i control which iframe the calendar looks at for positioning ?

I would prefer if it did not look at the parent frame at all, since these are in different domains actually.
salesforce.com for the outer frame, and force.com for the visualforce page that holds the web2cal

thanks!
Ron Hess

Please Log in to join the conversation.

Re: Preview and New event popups are offset in Force.com 14 years 6 months ago #160

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 143
  • Karma: 1
  • Thank you received: 1
Hey Ron,

We are aware that at times, specially when you have fixed containers you face positioning issues.

For this purpose, we do have adjustHeightOffset option.
You can provide adjustHeightOffset=97;

Alternatively,
You can change the positioning code by changing showPreview method in web2cal.support.js

Hope this helps!

Please Log in to join the conversation.


Team Web2Cal.

Re: Preview and New event popups are offset in Force.com 14 years 6 months ago #161

  • vnehess
  • vnehess's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Where do i add adjustHeightOffset=97;

is this a property of the calendar ?

so

ical.adjustHeightOffset=97;


or is it passed in the object like this :
adjustHeightOffset:"97",


I tried both, but was not able to affect the offset.
Is there documentation on adjustHeightOffset ?

thanks

Please Log in to join the conversation.

Re: Preview and New event popups are offset in Force.com 14 years 6 months ago #162

  • vnehess
  • vnehess's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
ok, i added this

Web2Cal.defaultSettings = -97;


just above my function createCalendar()

and it appears to work (correct the offset ) for the "Create New Event " popup.


but not for the event preview popup, this is still offset down from where i expect.

Is there another adjustment that i should try?

Thanks

Please Log in to join the conversation.

  • Page:
  • 1
Time to create page: 0.611 seconds
Powered by Kunena Forum

LATEST IN FORUM

  • No posts to display.

ABOUT US