git.iko.soy/typeable/elm-ui
on master help sign in
resolves #134 - propogate width fill all the way to the input element
2bfb5a9Matthew Griffith
src/Element/Input.elm+6−6
@@ -1235,17 +1235,17 @@ redistributeOver isMultiline stacked attr els =
1235 { els | parent = attr :: els.parent }
1235 { els | parent = attr :: els.parent }
1236
1236
1237 Internal.Width width ->
1237 Internal.Width width ->
1238− if stacked then
1239− { els | fullParent = attr :: els.fullParent }
1240−
1241− else if isFill width then
1238+ if isFill width then
1242 { els
1239 { els
1243 | fullParent = attr :: els.fullParent
1240 | fullParent = attr :: els.fullParent
1244 , parent = attr :: els.parent
1241 , parent = attr :: els.parent
1242+ , input = attr :: els.input
1245 }
1243 }
1246
1244
1247− else if isPixel width then
1245+ else if stacked then
1248− { els | parent = attr :: els.parent }
1246+ { els
1247+ | fullParent = attr :: els.fullParent
1248+ }
1249
1249
1250 else
1250 else
1251 { els
1251 { els