I had run across that and tried it... something threw me off
though....  i didn't see the indicator (corner tab looking graphic),
so i assumed it didn't work

but just trying again, i added

handles: "n, s"

and it works as desires, *except" i loose my visual icon to tell the
user they can resize, i'd be fine with the same indicator shown
without any special "handles".....   am i missing a step for that?



On Dec 18, 12:36 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> Check out the handles option:
>
> http://docs.jquery.com/UI/Resizable#option-handles
>
> - Richard
>
> On Fri, Dec 18, 2009 at 12:28 PM, MorningZ <morni...@gmail.com> wrote:
> > I must be going nuts as I have scoured the Demo and Documentation for
> > the Resizable functionality and cannot for the life of me figure out
> > how to make it so that the item is only resizable in one direction
>
> > I'm currently using this code since I couldn't find the "right" way to
> > do it
>
> > <div id="#div1" class="resizable">
> >      <textarea></textarea>
> > </div>
>
> > <div id="#div2" class="resizable">
> >      <object></object>
> > </div>
>
> > $(".resizable").each(function() {
> >     var id = $(this).attr("id");
> >     $(this).resizable({
> >         alsoResize: "#" + id + " textarea, #" + id + " object",
> >         stop: function(e, ui) {
> >            $(this).width("100%");
> >            var x = $(this).width();
> >            $(this).find("textarea, object").width("" + (x - 26) +
> > "px");
> >         }
> >     });
> > })
>
> > the -26px thing is to give the enclosing/resizable <div> room for the
> > handle icon
>
> > Hopefully someone can enlighten me
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "jQuery UI" group.
> > To post to this group, send email to jquery...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > jquery-ui+unsubscr...@googlegroups.com<jquery-ui%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/jquery-ui?hl=en.

--

You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to