Closed pawelkulig1 closed 6 years ago
I will try to work this issue out while pull requests are not fully resolved
I think this issue has fully resolved, if not that is not a problem solely of that particular 2d widget but general window resizing
Fixing windows resizing problem haven't solved that. I will try to find solution once again.
I think I have found solution to fix this, this may take me a lot of time to resolve, for now I would recommend to exclude this widget, from available widgets because we have another working widget that is working properly.
Solution: the pyqtgraph widget has been created twice -> once because the Canvas2d upgraded class has inherited PlotWidet and then called the default constructor of a parent class, and secondly, this time by intention, in the init function of child class. This caused the two to overlay and thus cause problems. Removing inheritance on pyqtgraphs and directly inheriting from AbstractCanvas class allowed for easy handling of the size (probably can cause some conflict later with matplotlib context being invoked as well).