Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#7138 closed defect (fixed)

BorderContainer: unnecessary calls to dojo.marginBox() etc.

Reported by: bill Owned by: bill
Priority: high Milestone: 1.2
Component: Dijit Version: 1.1.1
Keywords: Cc:
Blocked By: Blocking:


BorderContainer makes and causes unnecessary calls to dojo.marginBox() etc., slowing down performance and also probably causing the layout glitches in test_Gui.html (#7123).

See the TODO statements in the code for details.

Change History (2)

comment:1 Changed 14 years ago by bill

Resolution: fixed
Status: newclosed

(In [14360]) Performance fixes for BorderContainer? (and also possibly fixes layout problems:

  • save border box size in _LayoutWidget.resize() and access it in BorderContainer?.layoutChildren(), rather than calling dojo.marginBox() unnecessarily
  • modified _LayoutWidget.resize() to take optional second parameter specifying current size. When resize() is used to notify a widget that it's size has changed (rather than being used to set the dimensions), this avoids a call to dojo.marginBox() to query the current size
  • make BorderContainer? pass the current size of each child widget to child.resize() so that the child doesn't need to call dojo.marginBox() to query it's own size

Fixes #7138 !strict

comment:2 Changed 14 years ago by bill

Milestone: tbd1.2
Note: See TracTickets for help on using tickets.