Bind .position() function to $(window).resize() event
<p>I have fully working jQuery code below that uses UI position plugin to position icons in a webpage based on offsets,etc.</p>

<p>While this one is working, I encounter some issues when resizing the browser and that the icon positions are not being recalculated.
   How to bind .position() function to  $(window).resize() event for the code below?</p>

<pre><code>(function($) {
$(window).load(function(event) {


if ( $(element_selector).length !== 0 &amp;&amp; $(title_class_selector).length !== 0  ) {

$(title_class_selector).position({
my: "center",
at: cornerPosition,
    offset:"&lt;?php echo $x_coordinates_foradjustment;?&gt; &lt;?php echo $y_coordinates_foradjustment;?&gt;",
of: $(element_selector)

});
}

    });
})(jQuery);
</code></pre>

<p>I have tried putting:</p>

<pre><code>$(window).bind('resize',event);
</code></pre>

<p>Just before closing jQuery and it did not help.
Thanks for any tips..</p>
