mirror of
https://github.com/jtdaugherty/brick.git
synced 2024-11-30 06:02:02 +03:00
Merge branch 'master' of github.com:jtdaugherty/brick
This commit is contained in:
commit
d032cbbe81
@ -620,7 +620,7 @@ A widget advertising a ``Fixed`` size in a given dimension is a widget
|
||||
that will always consume the same number of rows or columns no
|
||||
matter how many it is given. Widgets can advertise different
|
||||
vertical and horizontal growth policies for example, the
|
||||
``Brick.Widgets.Border.hCenter`` function centers a widget and is
|
||||
``Brick.Widgets.Center.hCenter`` function centers a widget and is
|
||||
``Greedy`` horizontally and defers to the widget it centers for vertical
|
||||
growth behavior.
|
||||
|
||||
|
@ -753,13 +753,13 @@ rewriteImage br (loRewrite, hiRewrite) old = rewriteHi . rewriteLo $ old where
|
||||
size = imagePrimary br old
|
||||
go = rewriteEdge (splitLoSecondary br) (splitHiSecondary br) (concatenateSecondary br)
|
||||
rewriteLo img
|
||||
| I.null loRewrite = img
|
||||
| I.null loRewrite || size == 0 = img
|
||||
| otherwise = concatenatePrimary br
|
||||
[ go loRewrite (splitLoPrimary br 1 img)
|
||||
, splitHiPrimary br 1 img
|
||||
]
|
||||
rewriteHi img
|
||||
| I.null hiRewrite = img
|
||||
| I.null hiRewrite || size == 0 = img
|
||||
| otherwise = concatenatePrimary br
|
||||
[ splitLoPrimary br (size-1) img
|
||||
, go hiRewrite (splitHiPrimary br (size-1) img)
|
||||
|
Loading…
Reference in New Issue
Block a user