486 ]. |
486 ]. |
487 ! |
487 ! |
488 |
488 |
489 setChildPositionsIfChanged |
489 setChildPositionsIfChanged |
490 "set all of my child positions - this is usually delayed, |
490 "set all of my child positions - this is usually delayed, |
491 until the panel is actually shown (since we don't know, if more |
491 until the panel is actually shown (since we do not know, if more |
492 elements are to be added) thus avoiding repositioning the elements |
492 elements are to be added) thus avoiding repositioning the elements |
493 over and over. However, sometimes it is nescessary, to force positioning |
493 over and over. However, sometimes it is necessary to force positioning |
494 the elements, for example, before querying the relative position of |
494 the elements, for example, before querying the relative position of |
495 an element (modalBoxes do so, to position the ok-button under the mouse |
495 an element (modalBoxes do so, to position the OK-button under the mouse |
496 pointer)." |
496 pointer)." |
497 |
497 |
498 mustRearrange ifTrue:[ |
498 mustRearrange ifTrue:[ |
499 self setChildPositions |
499 self setChildPositions |
500 ]. |
500 ]. |
|
501 |
|
502 "Modified (comment): / 30-05-2017 / 17:36:26 / mawalch" |
501 ! ! |
503 ! ! |
502 |
504 |
503 !PanelView methodsFor:'layout'! |
505 !PanelView methodsFor:'layout'! |
504 |
506 |
505 preferredExtent |
507 preferredExtent |