~alcinnz/CatTrap

18b54a4e3965573a2106ae1c30a6e7b9004490cd — Adrian Cochrane 1 year, 7 months ago 593bc79
Fix type error, confusing paddedboxes for borders.
1 files changed, 1 insertions(+), 1 deletions(-)

M Graphics/Layout.hs
M Graphics/Layout.hs => Graphics/Layout.hs +1 -1
@@ 120,7 120,7 @@ boxMaxWidth :: PaddedBox a Double -> LayoutItem y Length x -> LayoutItem y Lengt
boxMaxWidth parent (LayoutFlow val self childs) = LayoutFlow val self' childs'
  where
    childs' = map (boxMaxWidth self'') childs
    self'' = mapX (lowerLength $ inline $ B.size parent) self'
    self'' = mapX' (lowerLength $ inline $ B.size parent) self'
    self' = self { B.max = Size (Pixels max') (block $ B.max self) }
    max' = flowMaxWidth parent self
boxMaxWidth parent (LayoutGrid val self childs) = LayoutGrid val self' childs