Comments (7)
@alesviti Even when you select another node? For me, that solves the issue and moves all the elements involved.
from my-mind.
Yes. I meant while still editing. After moving away (or Enter) it moves OK.
I need to be more specific :-)
from my-mind.
@alesviti I would guess that the check for that occurs on node.select - if you want to change it to constantly check, or check on keyup, that would fix it. I would suggest the keyup method. @ondras your thoughts?
from my-mind.
I honestly see no real point in "fixing" this, but if that is what users want... can be done, naturally.
The node's value remains unchanged until you confirm that you are finished editing, either by hitting Enter or clicking another node. Only after this confirmation the node really changes its value and the relevant subtree gets redrawn.
This is the reason why nothing happens during editing: the re-layouting and re-drawing can be expensive and I wanted to prevent this being done too frequently (i.e. every time the value changes by pressing a key or so).
from my-mind.
@ondras I'm guessing this really only becomes computationally expensive when your total node count rises above a certain number? What if instead of checking on every keyup, there was a timer event that checked? This also seems like a more expensive option, but I'm just shooting ideas here.
My real suggestion is this: To avoid text overlay, when editing a node, use CSS to style that selected node to have a "background" color that is 100% opaque and overlays anything behind / under it. The node should also "grow" in size as text is entered. Think about how Excel / Numbers allows you to type text into a cell that will expand over all neighbor cells, and then on confirm will re-size everything to properly align.
from my-mind.
@samelawrence Perhaps I was just too afraid to re-layout stuff too frequently. I will perform some tests and adjust the feature as necessary.
from my-mind.
@ondras Right. Using my suggestion doesn't force any re-layout until confirmation. It just avoids text overlay.
from my-mind.
Related Issues (20)
- I did some thing,some years ago,maybe useful to you HOT 2
- Message at bottom of screen HOT 4
- NextCloud Integration HOT 13
- Page does not load correctly when opening index.html locally HOT 6
- [Feature] Dockerize this app HOT 4
- Pinch to zoom HOT 1
- Google analytics and other javascript files HOT 1
- Invalid download link in README.md HOT 2
- To line break on the last line, need to press Enter twice. HOT 1
- [FEATURE]Add a "onbeforeunload" event to prevent the window from being closed by mistake. HOT 1
- The webdav address cannot be entered. HOT 3
- Breakage of connection harms others HOT 2
- Save URI only populates directory when URL is set in query string HOT 3
- [question] how to merge a diff when something has changed HOT 2
- webdav backend should not error on return code 201 HOT 2
- Disable "Save" and "Load" button when required input is missing HOT 2
- [concept] AI Copilot HOT 1
- Taylor Swift should message me so I can give her everything she wants
- urls in items HOT 1
- Copy/cut HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from my-mind.