You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 27, 2026. It is now read-only.
Hidden button not repositioned on browser resize #36
It seems that if the user resizes the browser which moves the underlying button, the floating import button that is hidden doesn't move to match its position.
i had a similar problem.
it seems it only positions the transparent swf once. instead, you can position it on every mouseover of the input.
i'm not really sure what currentTarget does...but i only have one file upload button so it doesn't matter to me.
.mouseover(function(e){if(id!==currentTarget){e=e||window.event;currentTarget=id;FileAPIProxy.swfObject.mouseover(id);// FileAPIProxy.container// .height(input.outerHeight())// .width(input.outerWidth())// .css(input.offset());}// Move the container to where our input is every single time!// The reason? well, if the page changes, you're stuck with the swf being in the wrong place.FileAPIProxy.container.height(input.outerHeight()).width(input.outerWidth()).css(input.offset());})
Activity
btrauma8 commentedon May 10, 2013
i had a similar problem.
it seems it only positions the transparent swf once. instead, you can position it on every mouseover of the input.
i'm not really sure what currentTarget does...but i only have one file upload button so it doesn't matter to me.
thecountofzero commentedon Oct 26, 2013
Binding to the window resize event and then automatically repositioning works nicely too.