admin管理员组文章数量:1423216
Using Facebook like button inside an app iframe, e.g.
The like button is usually positioned somewhere on the right part of the screen. The problem is that once the like button is clicked, the dialog that es beneath it hides beyond the iframe container, e.g.
It is very easy to simply disable the dialog (using CSS), however, something I need the dialog.
What are the possible solutions for this? I expect there should be a method to trigger some overlay form or make the dialog to appear to-the-left of the like button rather than right.
Using Facebook like button inside an app iframe, e.g.
The like button is usually positioned somewhere on the right part of the screen. The problem is that once the like button is clicked, the dialog that es beneath it hides beyond the iframe container, e.g.
It is very easy to simply disable the dialog (using CSS), however, something I need the dialog.
What are the possible solutions for this? I expect there should be a method to trigger some overlay form or make the dialog to appear to-the-left of the like button rather than right.
Share Improve this question asked Nov 29, 2011 at 12:51 GajusGajus 74.2k80 gold badges297 silver badges473 bronze badges 3- I am having a similar issue. Did you fix it? – Daniele Commented Sep 6, 2012 at 14:35
- No, Facebook did not provide ability to change element align. You will simply need to move the element to the left end of the page or hide the ment dialog. – Gajus Commented Sep 6, 2012 at 19:43
- Funny that Facebook hasn't added yet any option to left-align the dialog. – Gajus Commented Nov 12, 2012 at 17:38
2 Answers
Reset to default 2From the Facebook 'Like Button' dev page
'If the Like button is placed near the edge of an HTML element with the overflow property set to hidden, the flyout may be clipped or pletely hidden when the button is clicked. This can be remedied by setting setting the overflow property to a value other than hidden, such as visible, scroll, or auto.'
I have a similar problem and this fixed. Add this to your stylesheet:
.fb-like span{overflow:visible !important; width:450px !important; margin-right:-375px;}
本文标签: javascriptFacebook like button dialog overflow issueStack Overflow
版权声明:本文标题:javascript - Facebook like button dialog overflow issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745388502a2656487.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论