tweaks fixes and cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-11-27 05:29:07 +03:00
parent 042c42f86b
commit 8d4f449981
2 changed files with 12 additions and 6 deletions

View File

@ -1503,6 +1503,8 @@ var Outline = {
/* XXX not used -- do we need this??
// XXX UPDATE_CODE_SIZE this is a no-op at this point -- do we need this???
_updateCodeSize: function(code, view){
// XXX
return this
code.style.height =
getComputedStyle(
view
@ -1691,12 +1693,9 @@ var Outline = {
state = state == 'next' ?
node.getAttribute('collapsed') != ''
: state
if(state){
state ?
node.setAttribute('collapsed', '')
} else {
node.removeAttribute('collapsed')
for(var elem of [...node.querySelectorAll('textarea')]){
elem.updateSize() } }
: node.removeAttribute('collapsed')
this.__change__()
return node },
show: function(node='focused', offset){
@ -2584,7 +2583,9 @@ var Outline = {
// give the browser a chance to update the DOM...
// XXX revise...
setTimeout(function(){
that.runPlugins('__editedcode__', evt, that, elem) }, 0) }
that.runPlugins('__editedcode__', evt, that, elem)
// this will resize the text to fill the available area...
elem.style.removeProperty('height') }, 0) }
that.runPlugins('__focusout__', evt, that, elem) })
// update .code...

View File

@ -48,6 +48,11 @@ var setup = function(){
-
- ## Bugs:
focused:: true
- BUG: cursor placement is off again...
- ```
text text text
```
text text text (a click here is offset right by 4-5 chars)
- BUG: styling error...
- this _seems `to` work_
- `while` _this `does` not_