Skip to content

Commit c3caedd

Browse files
committed
Allow the toolbar to be docked into the top of the window if somehow it should
become undocked
1 parent e247c20 commit c3caedd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/bundles/toolbar/bundle_info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- vi:set shiftwidth=2: -->
22
<BundleInfo name="ChimeraX-Toolbar"
3-
version="1.2.3" package="chimerax.toolbar"
3+
version="1.2.4" package="chimerax.toolbar"
44
minSessionVersion="1" maxSessionVersion="1">
55

66
<Author>UCSF RBVI</Author>

src/bundles/toolbar/src/tool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _build_ui(self):
111111
layout.addWidget(self.ttb)
112112
self._build_tabs()
113113
self.tool_window.ui_area.setLayout(layout)
114-
self.tool_window.manage(self.PLACEMENT)
114+
self.tool_window.manage(self.PLACEMENT, allowed_areas=Qt.AllDockWidgetAreas)
115115

116116
def _color_scheme_changed(self, *_):
117117
from chimerax.ui.widgets.tabbedtoolbar import TabbedToolbar

0 commit comments

Comments
 (0)