mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +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 {
|
for {
|
||||||
switch peek(state) {
|
switch peek(state) {
|
||||||
case ')':
|
case ')':
|
||||||
st.Layout(gtx, children...)
|
if state.skip == 0 {
|
||||||
|
st.Layout(gtx, children...)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
case ',':
|
case ',':
|
||||||
expect(state, ",")
|
expect(state, ",")
|
||||||
@@ -291,7 +293,9 @@ loop:
|
|||||||
for {
|
for {
|
||||||
switch peek(state) {
|
switch peek(state) {
|
||||||
case ')':
|
case ')':
|
||||||
fl.Layout(gtx, children...)
|
if state.skip == 0 {
|
||||||
|
fl.Layout(gtx, children...)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
case ',':
|
case ',':
|
||||||
expect(state, ",")
|
expect(state, ",")
|
||||||
|
|||||||
Reference in New Issue
Block a user