opened 12:35PM - 15 Jun 12 UTC
closed 09:52AM - 12 Sep 20 UTC
bug
Stale
**Originally by @jdahlstrom**
___
The semantics of `Window.center()` are very p…eculiar. After the method is called, the window goes into a "centered" state where it will re-center itself if it is implicitly resized as a result of its content resizing. There are a few problems with this:
- Users may want/expect a "one-shot" centering without setting a separate "centered" state. The method name gives this impression (see eg. #7938)
* The window is not immediately re-centered when its parent window is resized, even though the centered state persists.
* The centered state is very fragile and is lost if the server-side does anything that results in a UIDL message to the window (eg. changing its caption). This is clearly a bug.
* As a result of the last point, explicitly resizing the window also cancels the centered state.