Comments (2)
Turns out it was a stupid mistake - it's impossible to use
each(splitpanel.widgets, (child,i)=>{
(child as TabBar<Widget>).dispose();
});
to clear all widgets from a panel, because you're removing items from the array while you're iterating over it.
Instead, I used
while(main.widgets.length>0){
main.widgets[main.widgets.length-1].dispose();
}
which works as expected.
from lumino.
If you can post a minimal example reproducing the issue, that will help us be able to diagnose what might be going on.
In general, setting the parent to null
should be enough to remove a widget from the parent layout, and dispose should be doing that, as you mention.
from lumino.
Related Issues (20)
- [DataGrid] double-clicking cells to edit them is flakey HOT 11
- The `Title.changed` signal could emit some detail about the change
- Should commands receive an event that triggered them? HOT 2
- Deprecation in 1.x without fix HOT 2
- Allow a custom label for menu items, overriding the command name HOT 2
- Dock panels with reusable splits HOT 2
- Reuse the plugin system without depending on the Lumino Widgets HOT 3
- Drag image is rendered off-screen HOT 3
- MenuBar example is currently broken HOT 5
- Conditional Lumino plugin load HOT 3
- Focus tracker does not focus on tab item HOT 2
- Karma is deprecated we should move on HOT 4
- Auto tab activation
- Tab title edition in Firefox has bugs
- `Tab` and `Shift+Tab` are moving the focus in strange way in `DockPanel`
- Automate link to ReadTheDocs PR preview
- How to persistence SplitPanel and DockPanel? HOT 3
- DockPanel drag & drop HOT 1
- SplitPanel has 0 width and height HOT 8
- How DockPanel set relative sizes?
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 lumino.