Commit c08d0244173b536ab897dfe785be175a83c4ab02
1 parent
fe1b1850
Exists in
master
viewer_slice scroll desapearing when resizing
Showing
1 changed file
with
0 additions
and
10 deletions
Show diff stats
invesalius/data/viewer_slice.py
... | ... | @@ -1049,7 +1049,6 @@ class Viewer(wx.Panel): |
1049 | 1049 | #self.scroll.Bind(wx.EVT_SCROLL_ENDSCROLL, self.OnScrollBarRelease) |
1050 | 1050 | self.interactor.Bind(wx.EVT_KEY_DOWN, self.OnKeyDown) |
1051 | 1051 | self.interactor.Bind(wx.EVT_RIGHT_UP, self.OnContextMenu) |
1052 | - self.interactor.Bind(wx.EVT_SIZE, self.OnSize) | |
1053 | 1052 | |
1054 | 1053 | def LoadImagedata(self, mask_dict): |
1055 | 1054 | self.SetInput(mask_dict) |
... | ... | @@ -1433,15 +1432,6 @@ class Viewer(wx.Panel): |
1433 | 1432 | self.scroll.SetThumbPosition(pos) |
1434 | 1433 | self.OnScrollBar() |
1435 | 1434 | |
1436 | - def OnSize(self, evt): | |
1437 | - print("OnSize") | |
1438 | - w, h = self.GetSize() | |
1439 | - rwin = self.interactor.GetRenderWindow() | |
1440 | - rwin.SetSize(w, h) | |
1441 | - # if self.slice_data: | |
1442 | - # self.slice_data.SetSize((w, h)) | |
1443 | - # evt.Skip() | |
1444 | - | |
1445 | 1435 | def OnSetMIPSize(self, number_slices): |
1446 | 1436 | self.number_slices = number_slices |
1447 | 1437 | self.ReloadActualSlice() | ... | ... |