splitting resizer suggestions (fixed box with movable inside borders)

Discussion in 'Javascript' started by Ted Zlatanov, Jan 16, 2007.

  1. Ted Zlatanov

    Ted Zlatanov Guest

    I'm working on a splitting resizer, something that will take a div
    element with absolute bounds (let's say 100x100) and split it into N
    pieces with N-1 borders (each piece is another div with absolute
    positioning). Each border is draggable, so if you divide into, say, 3
    equal pieces (33/33/34) and you drag the last border, the piece sizes
    will end up at 33/60/7.

    So this:

    [ | | ]

    becomes

    [ | |]

    in rough ASCII. The vertical sizes in this example remain at 100 for
    each piece. The resizer should work vertically as well (with static
    horizontal sizes) but that's pretty trivial.

    My questions are:

    1) has this been implemented already? I've looked around and tried
    the dojo.widget.SplitContainer, but it was s-l-o-w and sizes didn't
    get set appropriately. Any other suggestions?

    2) is there a better way to implement this, perhaps with less
    Javascript? I'm thinking of alternate ways than dragging the border:
    clicking in the "new" location of the border, using a visual scroll
    wheel, buttons to go left/right... Any helpful ideas would be most
    welcome.

    Thanks
    Ted
     
    Ted Zlatanov, Jan 16, 2007
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ryan Ternier

    movable Div's, MSN's MyPage site

    Ryan Ternier, Jul 16, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    3,124
    Guest
    Jul 19, 2004
  2. Karsten Wutzke
    Replies:
    9
    Views:
    7,726
    Scott Yanoff
    Oct 31, 2003
  3. George
    Replies:
    9
    Views:
    5,507
    George
    Oct 25, 2004
  4. johnp
    Replies:
    4
    Views:
    3,981
    Toby Inkster
    May 23, 2005
  5. Gnarlodious
    Replies:
    4
    Views:
    18,003
    elizas
    May 5, 2010
  6. cera
    Replies:
    1
    Views:
    1,665
    Neredbojias
    Aug 18, 2007
  7. Oliver Knorr

    Scripting over document borders / Alert Box

    Oliver Knorr, May 6, 2004, in forum: Javascript
    Replies:
    2
    Views:
    131
    Oliver Knorr
    May 6, 2004
  8. Replies:
    1
    Views:
    235
Loading...