From 4e23dc6a08af3eb300b2b8fab855f9c4a2cc75e8 Mon Sep 17 00:00:00 2001 From: Evan Czaplicki Date: Tue, 24 Dec 2013 10:16:17 -0800 Subject: [PATCH] Mess with documentation for `empty` --- libraries/Graphics/Element.elm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libraries/Graphics/Element.elm b/libraries/Graphics/Element.elm index b8b276a..ead768e 100644 --- a/libraries/Graphics/Element.elm +++ b/libraries/Graphics/Element.elm @@ -13,7 +13,7 @@ combine and position. @docs widthOf, heightOf, sizeOf # Layout -@docs flow, up, down, left, right, inward, outward, empty +@docs flow, up, down, left, right, inward, outward ## Layout Aliases There are also some convenience functions for working @@ -22,7 +22,7 @@ with `flow` in specific cases: @docs layers, above, below, beside # Positioning -@docs spacer, container +@docs empty, spacer, container ## Specific Positions @@ -58,7 +58,10 @@ type Properties = { type Element = { props : Properties, element : ElementPrim } -{-| An Element that takes up no space -} +{-| An Element that takes up no space. Good for things that appear conditionally: + + flow down [ img1, if showMore then img2 else empty ] +-} empty : Element empty = spacer 0 0