Solving bugs that make scroll bar disappeared after replot TPS
1 unresolved thread
1 unresolved thread
Compare changes
- Lan Dam authored
@@ -116,7 +116,6 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
@@ -146,6 +145,7 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
@@ -190,13 +190,12 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
@@ -614,7 +613,9 @@ class TimePowerSquaredWidget(plotting_widget.PlottingWidget):
Why do you not reset the size of the TPS plot when you replot?
Because reset the size which is the task of init_size() will reset the size of the main_widget to the open view port. With the first replot, the main_widget size is resize to fit all channels. If we reset the size, we have to remember the size that fit all channels and resize the main widget with that size, which is a lot of logic. So, it's better not resetting the size.