fixing stack state problem
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Quill</title>
|
||||
<link rel="icon" href="">
|
||||
<link rel="icon" href="../_/Quill.png">
|
||||
<link rel="stylesheet" href="">
|
||||
<script src="../index.js"></script>
|
||||
<script src="test.js" type="module"></script>
|
||||
|
||||
BIN
_/Quill.png
Normal file
BIN
_/Quill.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
15
index.js
15
index.js
@@ -1,7 +1,8 @@
|
||||
/*
|
||||
Sam Russell
|
||||
Captured Sun
|
||||
12.26.25 - State for arrays, nested objects. State for stacks (Shadow-only)
|
||||
12.26.25 - Fixing stack state problem
|
||||
12.25.25 - State for arrays, nested objects. State for stacks (Shadow-only)
|
||||
12.17.25 - [Hyperia] - adding width, height functions. adding "e" to onClick. adding the non-window $$ funcs.
|
||||
12.16.25 - [comalyr] - State
|
||||
11.25.25.1 - Added minHeight and minWidth to be counted as numerical styles
|
||||
@@ -203,6 +204,13 @@ window.quill = {
|
||||
quill.rendering.pop()
|
||||
},
|
||||
|
||||
rerenderStackContents: (el, cb) => {
|
||||
el.innerHTML = ""
|
||||
quill.rendering.push(el)
|
||||
cb()
|
||||
quill.rendering.pop()
|
||||
},
|
||||
|
||||
isStack: (el) => {
|
||||
return el.classList.contains("HStack") || el.classList.contains("ZStack") || el.classList.contains("VStack")
|
||||
},
|
||||
@@ -831,10 +839,7 @@ handleStack = function(cb, name, styles="") {
|
||||
quill.lastState = null
|
||||
cb()
|
||||
if(quill.lastState) {
|
||||
nowRendering.addStateWatcher(quill.lastState, () => {
|
||||
nowRendering.innerHTML = ""
|
||||
cb()
|
||||
})
|
||||
nowRendering.addStateWatcher(quill.lastState, quill.rerenderStackContents.bind(nowRendering, nowRendering, cb))
|
||||
}
|
||||
return nowRendering
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user