Ticket #1578 (new enhancement)

Opened 2 years ago

Last modified 4 hours ago

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

Reported by: aum Owned by: tk
Priority: normal Milestone: future
Component: Dojox Version: 0.3
Severity: normal Keywords:
Cc: tk

Description (last modified by bill) (diff)

(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

Changed 2 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

Changed 2 years ago by aum

Removed ugly debug msg from animation demo

Changed 2 years ago by dylan

  • summary changed from StretchPane (formerly called ElasticPane), now working in moz/ff and ie to [patch][cla] StretchPane (formerly called ElasticPane), now working in moz/ff and ie
  • milestone set to 0.5

Changed 2 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 http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book83, now contains a link to a tarball on the author's website for the current and correct code.

Changed 23 months 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 ;)

Changed 18 months ago by bill

  • owner deleted
  • component changed from Widgets to Dojox
  • milestone changed from 0.9 to 1.0

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.

Changed 15 months 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.

-Karl

Changed 13 months ago by peller

  • owner set to tk
  • milestone changed from 1.0 to 2.0

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

Changed 13 months 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.

-Karl

Changed 9 months ago by alex

  • milestone changed from 2.0 to 1.3

Milestone 2.0 deleted

Changed 5 hours ago by bill

  • description modified (diff)

move unowned / abandoned tickets to "future" milestone

Changed 4 hours ago by bill

  • milestone changed from 1.3 to future
Note: See TracTickets for help on using tickets.