× Joomla Facebook Connect support forum

Topic-icon Canvas Not Resizing in IE JFBCONNECT 4.2.1

Active Subscriptions:

None
14 years 1 month ago #22069 by Ivan
Guys,

I have enabled auto resizing in the jfbconnect backend and set height to fluid in facebook/developers however when i go to a page in my site within the canvas and the page height is minimized it would not resinze and has one scroll bar in canvas area and 1 scroll bar in facebook windwo area.
The topic has been locked.
Support Specialist
14 years 1 month ago #22122 by alzander
Ivan,
Looking at your -dev.com page (not sure if that's the one in your Canvas), in the Facebook Javascript inclusion area, I see:
FB.Canvas.setAutoGrow(3);
FB.Arbiter.inform('setSize',{ width: 760, height: document.body.offsetHeight })
That's not from JFBConnect. Is that code also displayed in the canvas?

Can you try removing any modifications you've made to our Javascript inclusion and see if the resizing works properly? If not, please let us know the Canvas URL. I'm sure you've mentioned it before, but I couldn't find it on a quick search.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #22250 by Ivan
Hi Alex,

Yes this code I have is the code that actually fixed the issue we had where there was white space in IE and firefox due to not autoresizing with the backend settings or the fluid height in the backend. You have to use set height in the developers settings. This code is what fixes it - FB.Arbiter.inform('setSize',{ width: 760, height: document.body.offsetHeight })
The topic has been locked.
Support Specialist
14 years 1 month ago #22279 by alzander
Ivan,
Can you test without your modifications to the JFBCSystem Javascript inclusion to see if that changes the behavior? Unfortunately, the code changes you added are not something we test with, so I'm not sure if that's affecting the results or where the issue really is.

This isn't something we've run into or heard from other users, so it's tough to debug on your site with the modifications you've made.

Alternatively, can you try setting a different canvas area template (like the Rhuk Milkyway Joomla one) and see if the same problem occurs? Between the default Joomla template and your Javascript changes, hopefully, we can narrow down where the issue is coming from.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 1 month ago #22282 by Ivan
Alex,

The code i posted above is the fix for the canvas not resizing with the backend option set to Auto Resize. I have this code and in the facebook/developers area I have made the height fixed. So my site issue is solved.
The topic has been locked.
Support Specialist
14 years 1 month ago #22351 by alzander
Ahh.. Thanks for the tip. I've taken a note of this and we'll be investigating it further for the 4.2.2 minor bug-fix release we're shooting for later this month. We haven't heard about this problem from others yet, but always like to fix things before they become a bigger problem.

Thanks again,
Alex
The topic has been locked.