elm-lang/window/1.0.1

NOTE: this package is not compatible with Elm 0.19.1

Window

Your application lives in some sort of window. This library helps you figure out how big that window is.

Window Size

type alias Size =
{ width : Int
, height : Int
}

The size of the window in pixels.

size : Task x Size

Get the current window size.

width : Task x Int

Get the current window width.

height : Task x Int

Get the current window height.

resizes : (Size -> msg) -> Sub msg

Subscribe to any changes in window size.