Hello,
I switched to iframe app at http://apps.facebook.com/shopping-mall , but the frames do not look very aesthetic :) Any tops on hiding them?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | scrollbars FB | 80.97 KB | discopig |
Hello,
I switched to iframe app at http://apps.facebook.com/shopping-mall , but the frames do not look very aesthetic :) Any tops on hiding them?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | scrollbars FB | 80.97 KB | discopig |
Comments
Comment #1
discopig commentedYou should turn off the scrollbars option in your Developer App and can
and using the setSize() function in FB JavaScript SDK http://developers.facebook.com/docs/reference/javascript/FB.Canvas.setSize/
http://dl.dropbox.com/u/18075375/16.04.jpg
Comment #2
giorgio79 commentedLovely, thanks discopig.
Comment #3
giorgio79 commentedLets make this a feature request, I think this javascript call should come from drupal for fb.
Comment #4
Dave Cohen commentedDocumentation helps. :)
http://drupal.org/node/923818
Comment #5
giorgio79 commentedWell, yes user is lazy for a reason :)
The module could simple call drupal_add_js so we dont have to modify theme files every time there is an update.
What do you think? :)
There is no reason for setSize sitting in body tag. It works perfectly fine for me in a block inside content area, under head.
Comment #6
giorgio79 commentedCurious of opinions :)
Comment #7
Dave Cohen commentedSubmit a patch if you have a better way. Or explain what's wrong with the way it works now.
Comment #8
giorgio79 commentedThe problem with modifying theme files is that when an upgrade comes to the theme, one has to always manually make the changes into the body over and over again. This makes updating themes a pain.
For now, I setup a simple block holding this js for myself, but the module could easily call drupal_add_js , and add this, even as inline javascript into head.
I dont have time for a patch now, leaving this open to someone who might have
Here is the doc on drupal_add_js that should be used IMHO :) http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ad...