Ticket #563 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 12 months ago

LayoutPane cannot size itself based on it's content

Reported by: anonymous Owned by: koranteng
Priority: normal Milestone: 1.0
Component: Dijit Version: 0.2
Severity: normal Keywords:
Cc:

Description

In the http://archive.dojotoolkit.org/nightly/tests/widget/test_Layout.html example, changing the text sizes does not cause the layout pane to resize itself. In fact, when loading content in dynamically, if the new content is much larger than the previous content, the results will be clipped. This behaviour can be seen in both FF and IE by: choosing the smallest text size refresh the browser to ask the LayoutPane? to resize itself choose the largest text size

You can notice that splitpane bar position never moves. This isn't so much of a problem in the test harness, but this behaviour is wrong for applications with liquid layouts.

Change History

Changed 2 years ago by bill

  • type changed from defect to enhancement
  • summary changed from ContentPane does not resize itself in layout when content changes (or when text size changes) to LayoutPane cannot size itself based on it's content

You can specify style="overflow: auto" on the content pane so you get a scrollbar.

But, you have to specify an explicit size for LayoutPane? (and SplitPane? and TabPane?, etc.). It's a design limitation.

Changing this to an enhancement request. Not sure if it's possible though (since the LayoutPane? doesn't have anyway of knowing when the font size has changed).

Changed 2 years ago by dylan

  • owner changed from anonymous to bill
  • component changed from General to Widgets
  • milestone set to 0.9

setting a far in teh future milestone in case inspiration strikes.

Changed 20 months ago by dylan

  • milestone changed from 0.9 to 0.6

Changed 14 months ago by peller

  • owner changed from bill to koranteng
  • component changed from Widgets to Dijit

Changed 12 months ago by bill

  • status changed from new to closed
  • resolution set to wontfix

Layout widgets aren't supposed to do this. If you want dynamic sizing use a plain <div>. Sorry, closing this.

Note: See TracTickets for help on using tickets.