javascript - jquery resizable with absolute position -


i have following problem: need make div re-sizable, needs located on right bottom of page. when use jquery resizable function , position: absolute, div jumps around...

sample

code:

$('#resizable').resizable({   handles: {     'nw': '#nwgrip',     'n': '#ngrip',     'w': '#wgrip'   } });    <div id='resizable'>     <div id='content'>       im resizable!     </div>     <!-- define corners -->     <div class="ui-resizable-handle ui-resizable-nw" id="nwgrip"></div>     <div class="ui-resizable-handle ui-resizable-n" id="ngrip"></div>     <div class="ui-resizable-handle ui-resizable-w" id="wgrip"></div>   </div> 

the problem resizable uses top left with , height set element's position.

now yours positioned right , bottom @ beginning, moment resizable updates position, right deleted , left set. (to 0 because doesn't exist).

so you'll have calculate left position @ page load or maybe on resize start


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -