How to prevent the facebook-SDK (Javascript) is moving the logout button from right to left ("PluginResize") -


Working with Facebook Javascript-SDK (Loads from encryption with its servers) gives a weird effect:

Log in successfully via SDK FB logout-button is moving left and right from the pixel side right.

The login / logout-button is declared as follows:

  & lt; Fb: Login button size = "big" autologoutlink = "true" perms = "email, user_birthday, status_update, publish_stream" & gt; & Lt; / Fb: login-button & gt;   

Stop the script in a javascript-file that has been called M6XESwM2V2D.js and there are the following code rows in the firebug results:

  __d ("PluginResize "(" Log "," unchanged XD "," bind "," copy properties "," curry "), function (a, b, c, d, e, f) {var g = b ('log') , H = B ('unchanged XD'), I = B ('bind'), j = b ('copy properties'), k = b ('curry'); function l (o) {o = o} document .offsetwidth + o.offsetLeft;} function m (o) {o = o} document body; Passed o.offsetHeight + o.offsetTop;} function n (o, p, event) {this.calcWidth = o || L; this.calcHeight = p || m; this.width = undefined; this.height = undefined; This.event = event || 'resize';} j (n.prototype, {resize: function () {var o} = This.calcWidth (), p = this.calcHyight (); if (o! == this .width || p! == this.height) {g.debug ('Resizing plugin: (% s,% s,% S)', o, p, this.event); this.width = o; this. Height = p; h.send ({type: this.event, width: o, height: p});} return it;}, auto: function (o) {set interval (i (this, it. Rasez), O || 250); Return it;}}); NOO = Function (O, P, Event) (K (L, O), K (M, O), Event) .resize (). Aut o (p);}; E.exports = n;});   

When the code in JavaScript-debugger stops the code, the button movement stops (expected), and the code moves when it is moving. In the above printed Javascript code set interval -There is a call to the method. Therefore, it can explain the behavior. But why do they do this?

How can I stop this effect?

btw - add style = "position: fixed;" Help me in login-button:

  & lt; Fb: login-button autologoutlink = "true" style = "position: fixed;" & Gt; & Lt; / Fb: login-button & gt;   

Cheers, Katie.

Comments