layout: skip Flex and Stack Layout when scanning format string

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-10-16 20:29:17 +02:00
parent f442512888
commit b1643e5e2a
+6 -2
View File
@@ -211,7 +211,9 @@ loop:
for {
switch peek(state) {
case ')':
st.Layout(gtx, children...)
if state.skip == 0 {
st.Layout(gtx, children...)
}
return
case ',':
expect(state, ",")
@@ -291,7 +293,9 @@ loop:
for {
switch peek(state) {
case ')':
fl.Layout(gtx, children...)
if state.skip == 0 {
fl.Layout(gtx, children...)
}
return
case ',':
expect(state, ",")