Opened 15 years ago

Closed 13 years ago

#1578 closed enhancement (wontfix)

[patch][cla] StretchPane (formerly called ElasticPane), now working in moz/ff and ie

Reported by: aum Owned by: tk
Priority: high Milestone: future
Component: Dojox Version: 0.3
Keywords: Cc: tk
Blocked By: Blocking:

Description (last modified by bill)

(This announcement supersedes and obsoletes a prior submission for 'ElasticPane?'. I have renamed ElasticPane? to StretchPane?, because it's two syllables shorter!)

The attached patch adds to Dojo a new widget called StretchPane? which (in contrast to the prior ElasticPane? implementation) is now tested and working in both moz/ff and msie.

StretchPane? is a widget, subclassed from ContentPane?, which sets its own position and size according to the size of its parent widget, via html attributes. It is suited for layouts where you want control over how widgets expand and contract as the window is resized. For instance, you might have a thin left pane with links, and a large right pane for content. You can implement these panes as StretchPane?, so that the left pane has a minimum width and doesn't stretch fast, while the right pane takes up all remaining space. I wrote this to overcome a painful limitation in CSS - the inability to base position/size on formulas, rather than percentage OR pixels.

The patch places the implementation in src/widget/StretchPane.js and a simple clear example in tests/widget/test_StretchPane.html

Change History (13)

comment:1 Changed 15 years ago by aum

Now added:

  • animation, via .move() method
  • implementations of Widget methods setWidth, setHeight, resize, show, hide
  • new methods setTop, setLeft, setPosition, setPositionAndSize

comment:2 Changed 15 years ago by aum

Removed ugly debug msg from animation demo

comment:3 Changed 15 years ago by dylan

Milestone: 0.5
Summary: StretchPane (formerly called ElasticPane), now working in moz/ff and ie[patch][cla] StretchPane (formerly called ElasticPane), now working in moz/ff and ie

comment:4 Changed 15 years ago by aum

All files attached to this ticket are deprecated, don't use them. The API has changed significantly.

The DojoDotBook? wiki page for StretchPane?, at, now contains a link to a tarball on the author's website for the current and correct code.

comment:5 Changed 15 years ago by tk

Cc: tk added

I deleted the attachments so you can reattach current ones if you wish, at minimum I would recommend attaching atleast the diff/patch file ;)

comment:6 Changed 15 years ago by bill

Component: WidgetsDojox
Milestone: 0.91.0
Owner: bill deleted

Hmm, this is probably something that should be added to Dojox rather than Dijit although I am on the fence; it could replace LayoutContainer?. In any case it seems like a good widget.

comment:7 Changed 14 years ago by tk

very very rough port committed just now under dojox.layout.StretchPane?...

I thought it was working better than it did, when tested by others, we found it to be very very finicky... Aum can you maybe take a look? It would be recommended that animateProperties be used instead of the home baked animation routine... but I dunno. I would work on it more, but right now I'm not sure how much time I have tonight.


comment:8 Changed 14 years ago by Adam Peller

Milestone: 1.02.0
Owner: set to tk

tk, I don't see the code, but if it's there, please mark as experimental for 1.0.

comment:9 Changed 14 years ago by tk

It was removed due to lack of response from originator and bugs that were found after it was committed... I'll take a go at again later, but not in the very near future.


comment:10 Changed 14 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:11 Changed 13 years ago by bill

Description: modified (diff)

move unowned / abandoned tickets to "future" milestone

comment:12 Changed 13 years ago by bill

Milestone: 1.3future

comment:13 Changed 13 years ago by dante

Resolution: wontfix
Status: newclosed

please reopen if there is interest.

Note: See TracTickets for help on using tickets.