Changes between Initial Version and Version 1 of Ticket #10440


Ignore:
Timestamp:
Dec 1, 2009, 11:34:36 PM (10 years ago)
Author:
bill
Comment:

Well, it needs a resize() method where the layout is done (even though technically there's no size change).

Startup() should call resize(), either all the time or at least when the ColorPicker isn't inside a layout widget.

In #10402 I'm considering passing a flag to startup() about whether or not the child widget is inside a layout widget, that will make it easier.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10440 – Description

    initial v1  
    1 The ColorPicker appears, but click on something and the color turns to gray.  Apparently, this is because measurements are taken in postCreate() where the element is hidden.  Bill says measurements should not be taken in postCreate -- apparently they should be done in startup(), though this would require the user to call startup on something which is not a layout container.  There is already a startup method, though I'm not sure why it needs to do the value set there.
     1The !ColorPicker appears, but click on something and the color turns to gray.  Apparently, this is because measurements are taken in postCreate() where the element is hidden.  Bill says measurements should not be taken in postCreate -- apparently they should be done in startup(), though this would require the user to call startup on something which is not a layout container.  There is already a startup method, though I'm not sure why it needs to do the value set there.
    22
    3 So we should consider that change, just to follow dijit rules, but I'm not sure this would solve the problem since startup also seems to be called for TooltipDialog content before it is visible.  Do we need to consider implementing something like layout()?
     3So we should consider that change, just to follow dijit rules, but I'm not sure this would solve the problem since startup also seems to be called for !TooltipDialog content before it is visible.  Do we need to consider implementing something like layout()?