git.iko.soy/typeable/elm-ui
on master help sign in
resolves #134 - propogate width fill all the way to the input element
commit2bfb5a9daa7de93a01711ded2e1b61a8e69f2411 authorMatthew Griffith <mdg.griffith@gmail.com> dateThu 1 Aug 2019, 08:55 (7 years ago) parent2acff4b
1 file changed+6−6
src/Element/Input.elm+6−6
src/Element/Input.elm+6−6
@@ -1235,17 +1235,17 @@ redistributeOver isMultiline stacked attr els =
12351235 { els | parent = attr :: els.parent }
12361236
12371237 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
12421239 { els
12431240 | fullParent = attr :: els.fullParent
12441241 , parent = attr :: els.parent
1242+ , input = attr :: els.input
12451243 }
12461244
1247− else if isPixel width then
1248− { els | parent = attr :: els.parent }
1245+ else if stacked then
1246+ { els
1247+ | fullParent = attr :: els.fullParent
1248+ }
12491249
12501250 else
12511251 { els