page slider using resizable

page slider using resizable

Hello guys,
I'm trying to create a simple "page slider" using resizable. Basically I have 2 elements: 'left column' and 'right column'; 'left column' is resizable (only horizontally) and I'd like 'right column' grows and shrinks according to 'left column' size in order to keep the same overall width.

Any ideas how I can achieve so?



I heve tried

  1. $(".left_column").resizable({ resize: function(event, ui) {
  2.      $(".right_column").width($(document).width() - ui.size.width )
  3.    }
  4.   });
but it is very shaky: the left border is not smooth and the scrolling bar appears and disappears very fast

Thanks and have a nice day


Sig