Comments (5)
I've just run into this issue where I need to call fitview
after the map has initialized - currently I'm having to use a timeout which is a tad nasty and also means I have to hide the map until fitview
has been called.
from react-flow.
You should be able to call fitView
inside the onLoad
callback https://github.com/wbkd/react-flow/blob/master/example/src/Stress/index.js#L40
from react-flow.
Hi @moklick
I am - still need to set a timeout of about 500ms within the onLoad
callback for the fitView
to work.
from react-flow.
Do you get an error or has the fitView
call no effect? Could you provide an example?
from react-flow.
I’m closing this issue because it has been inactive for a few months.
from react-flow.
Related Issues (20)
- Issue with Node Alignment in ReactFlow using Next.js
- Dynamically removes edges based on handles? HOT 2
- Background pattern id ends with undefined HOT 2
- "center" in PanelPosition is not completely centered
- Allow Multi-Selecting Nodes to Form SelectionBoxRect HOT 1
- Clicking a node doesn't select the node HOT 3
- [v12] Position absolute never displayed onNodeChanges HOT 8
- Error if parent node is after child node in the list of nodes HOT 2
- [V12] Missing types export: XYResizerParams and ResizeDragEvent HOT 2
- Selected nodes do not move when dragged after selecting with `Shift+Click` or programaticaly. HOT 1
- load remote custom node HOT 2
- getNodesBounds returns wrong values for nodes in subflow HOT 1
- Reactflow: Problem when use mui Menu as node context menu HOT 2
- TypeScript Error - Node.internals doesn't exist in the type export HOT 1
- setNodes from useReactFlow crashes as parent node cannot be found HOT 1
- Support non CSS-transform based rendering to allow the use of anchor positioning
- Error when clicking edge source end with onReconnect HOT 2
- NodeResizer lineStyle boderStyle invalid HOT 5
- Documentation website UX issue HOT 3
- [Typescript] useStore hook doesn't respect ReactFlowState generic HOT 2
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 react-flow.