Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/project_dict.pws
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
personal_ws-1.1 en 22
personal_ws-1.1 en 29
napari
autoupdate
aspell
Expand Down Expand Up @@ -27,3 +27,4 @@ cooldown
otsu
ome
ImageJ
QtViewer
5 changes: 4 additions & 1 deletion package/PartSeg/common_gui/napari_image_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,10 @@ def _bounding_box(self, num) -> Optional[tuple[np.ndarray, np.ndarray]]:
class NapariQtViewer(QtViewer):
def __init__(self, viewer):
super().__init__(viewer, show_welcome_screen=False)
self.widget(0).layout().setContentsMargins(0, 5, 0, 2)
layout = self.widget(0).layout()
if layout is not None:
# Before napari 0.7.0
layout.setContentsMargins(0, 5, 0, 2)

def dragEnterEvent(self, event): # pylint: disable=no-self-use
"""
Expand Down
Loading