Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- Removed unnecessary scrollbars in skeleton tab that occurred especially after resizing. [#8148](https://github.com/scalableminds/webknossos/pull/8148)
- Deleting a bounding box is now possible independently of a visible segmentation layer. [#8164](https://github.com/scalableminds/webknossos/pull/8164)
- S3-compliant object storages can now be accessed via HTTPS. [#8167](https://github.com/scalableminds/webknossos/pull/8167)
- Fixed a layout persistence bug leading to empty viewports, triggered when switching between orthogonal, flight, or oblique mode. [#8177](https://github.com/scalableminds/webknossos/pull/8177)

### Removed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,7 @@ class FlexLayoutWrapper extends React.PureComponent<Props, State> {
rebuildLayout() {
const model = this.loadCurrentModel();
this.updateToModelStateAndAdjustIt(model);
this.setState({
model,
});
setTimeout(this.onLayoutChange, 1);
this.setState({ model }, () => this.onLayoutChange());

if (this.props.layoutName !== DEFAULT_LAYOUT_NAME) {
sendAnalyticsEvent("load_custom_layout", {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,12 @@ class TracingLayoutView extends React.PureComponent<PropsWithRouter, State> {
app.vent.emit("rerender");

if (model != null) {
this.setState({
model,
this.setState({ model }, () => {
if (this.props.autoSaveLayouts) {
this.saveCurrentLayout(layoutName);
}
});
}

if (this.props.autoSaveLayouts) {
this.saveCurrentLayout(layoutName);
}
};

debouncedOnLayoutChange = _.debounce(() => this.onLayoutChange(), Constants.RESIZE_THROTTLE_TIME);
Expand Down