Bugfix; keeping view if table size increases.
This commit is contained in:
parent
9162deabac
commit
eb203ea8ad
|
@ -282,8 +282,11 @@ class MainView (gtk.Notebook):
|
||||||
## Hide all plots that will be removed from the screen.
|
## Hide all plots that will be removed from the screen.
|
||||||
for x in range(self._views.xsize):
|
for x in range(self._views.xsize):
|
||||||
for y in range(self._views.ysize):
|
for y in range(self._views.ysize):
|
||||||
if width > x or height > y:
|
if width < x or height < y:
|
||||||
self._views[x, y].set_view(None)
|
self._views[x, y].set_view(None)
|
||||||
|
|
||||||
|
for x in range(self._views.xsize):
|
||||||
|
for y in range(self._views.ysize):
|
||||||
self._small_views.remove(self._views[x, y])
|
self._small_views.remove(self._views[x, y])
|
||||||
|
|
||||||
self._views.resize(width, height)
|
self._views.resize(width, height)
|
||||||
|
|
Reference in New Issue