mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
layout: skip Flex and Stack Layout when scanning format string
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+6
-2
@@ -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, ",")
|
||||
|
||||
Reference in New Issue
Block a user