diff options
author | Henri Sara <hesara@vaadin.com> | 2013-05-17 09:10:31 +0300 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2013-05-17 09:10:31 +0300 |
commit | 145a3e3dad46e1aa04e4c8166e309ee8aaa8deeb (patch) | |
tree | 58b475a7224a6c932f77819b5c7a599749832499 /server/src/com/vaadin/ui/UI.java | |
parent | b79c0aa5bec3cf294dbc58ff66dbaa8686229654 (diff) | |
download | vaadin-framework-145a3e3dad46e1aa04e4c8166e309ee8aaa8deeb.tar.gz vaadin-framework-145a3e3dad46e1aa04e4c8166e309ee8aaa8deeb.zip |
Send browser window resizes if there is a listener (#10055)
This also introduces PageState, which is at the moment a part of
UIState.
Change-Id: I4f927e6b8217fa789d83ce5e0d8254b141f485c7
Diffstat (limited to 'server/src/com/vaadin/ui/UI.java')
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 6433bebbe4..2e9570fa09 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -117,7 +117,7 @@ public abstract class UI extends AbstractSingleComponentContainer implements /** Identifies the click event */ private ConnectorTracker connectorTracker = new ConnectorTracker(this); - private Page page = new Page(this); + private Page page = new Page(this, getState(false).pageState); private LoadingIndicatorConfiguration loadingIndicatorConfiguration = new LoadingIndicatorConfigurationImpl( this); @@ -686,10 +686,16 @@ public abstract class UI extends AbstractSingleComponentContainer implements /** * Should resize operations be lazy, i.e. should there be a delay before - * layout sizes are recalculated. Speeds up resize operations in slow UIs - * with the penalty of slightly decreased usability. + * layout sizes are recalculated and resize events are sent to the server. + * Speeds up resize operations in slow UIs with the penalty of slightly + * decreased usability. * <p> * Default value: <code>false</code> + * </p> + * <p> + * When there are active window resize listeners, lazy resize mode should be + * used to avoid a large number of events during resize. + * </p> * * @param resizeLazy * true to use a delay before recalculating sizes, false to |