Contact emails
Spec
Draft spec: https://wicg.github.io/ResizeObserver/
Summary
An observer-style API to get notifications when Element's size changes
Motivation
Web Components want to be responsive: a map that tiles its content area; a menu that hides its title when space is too narrow.
There is currently no API for an Component to detect when its size has changed. Web Applications can monitor viewport changes with window.resize event, or @media queries.
ResizeObserver provides an API that gives Elements a way to observe, and respond to changes in their size.
The API is a classic observer: observe/unobserve/disconnect.
Sample code for a map that tiles its content area at https://jsbin.com/woqusem/edit?html,output
Interoperability and Compatibility Risk
Feature has a draft spec. We've had a CSSWG meeting with Mozilla/Safari/Microsoft, and the response was that they do not mind the idea.. As a result of the meeting, we now have some tracking bugs:
Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1272409 Webkit: https://bugs.webkit.org/show_bug.cgi?id=157743 Microsoft: https://developer.microsoft.com/en-us/microsoft-edge/platform/status/resizeobserver/
Ongoing technical constraints
None.
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?
Yes.
OWP launch tracking bug
https://bugs.chromium.org/p/chromium/issues/detail?id=612954
Link to entry on the feature dashboard
https://www.chromestatus.com/feature/5670617353289728
Requesting approval to ship?
No.Contact emails
Spec
Draft spec: https://wicg.github.io/ResizeObserver/
Summary
An observer-style API to get notifications when Element's size changes
Motivation
Web Components want to be responsive: a map that tiles its content area; a menu that hides its title when space is too narrow.
There is currently no API for an Component to detect when its size has changed. Web Applications can monitor viewport changes with window.resize event, or @media queries.
ResizeObserver provides an API that gives Elements a way to observe, and respond to changes in their size.
The API is a classic observer: observe/unobserve/disconnect.
Sample code for a map that tiles its content area at https://jsbin.com/woqusem/edit?html,output
Interoperability and Compatibility Risk
Feature has a draft spec. We've had a CSSWG meeting with Mozilla/Safari/Microsoft, and the response was that they do not mind the idea.. As a result of the meeting, we now have some tracking bugs:
Mozilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1272409 Webkit: https://bugs.webkit.org/show_bug.cgi?id=157743 Microsoft: https://developer.microsoft.com/en-us/microsoft-edge/platform/status/resizeobserver/
Ongoing technical constraints
None.
Careless use of the API can certainly cause bad user experience. Proper use will enable better user experiences.Without the API, there is no good way to provide good user experiences upon resize.
Careless use of the API can certainly cause bad user experience. Proper use will enable better user experiences.Without the API, there is no good way to provide good user experiences upon resize.That's why I believe that API is needed.What did you replace SizeObserver with in Flutter?
On Wed, May 18, 2016 at 8:03 PM, 'Aleks Totic' via blink-dev <blin...@chromium.org> wrote:Careless use of the API can certainly cause bad user experience. Proper use will enable better user experiences.Without the API, there is no good way to provide good user experiences upon resize.To what extent are these use cases potentially addressed by Houdini custom layout?