Skip to content

Commit

Permalink
Fix window size not restoring when loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
black-sliver committed Jan 8, 2025
1 parent 451fdcf commit 655bd0f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/ui/trackerwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ void TrackerWindow::setTracker(Tracker* tracker, const std::string& layout)
_view->setHideUnreachableLocations(_hideUnreachableLocations);
_rendered = false;
addChild(_view);

// force-resize after the first render pass to force correct relayout.
// TODO: fix this in TrackerView and Containers
setSize(_size/*{_size.width-1, _size.height-1}*/);


_view->onMinSizeChanged += {this, [this](void *s) {
//Size curSize = Size::FromPosition(_view->getPosition()+_view->getSize());
Size curSize = getSize();
Expand Down

0 comments on commit 655bd0f

Please sign in to comment.