diff --git a/csaxs_bec/bec_widgets/widgets/xray_eye/x_ray_eye.py b/csaxs_bec/bec_widgets/widgets/xray_eye/x_ray_eye.py index e170f304..f11a4a54 100644 --- a/csaxs_bec/bec_widgets/widgets/xray_eye/x_ray_eye.py +++ b/csaxs_bec/bec_widgets/widgets/xray_eye/x_ray_eye.py @@ -329,7 +329,20 @@ class OMNY_XRayEye(BECWidget, QWidget): ) self.connect_motors() - self.resize(800, 600) + # No self.resize() here: this widget is normally embedded as a dock + # (see gui_tools.py's flomnigui_show_xeyealign()), where the dock + # manager (Qt Advanced Docking System) owns its geometry -- an + # explicit self-resize call fights that, and on a screen too small + # for the assumed geometry (gui_tools.py's hardcoded 2560px-wide + # assumption) corrupts the dock's layout until the operator manually + # moves/resizes the window (forcing Qt to reflow within the actual + # available space) -- confirmed live: reproduces reliably on a + # smaller screen, not on a large one, and only for this widget (the + # only one in this GUI with a self-resize call), never for the + # camera/console docks shown via flomnigui_show_cameras(). The + # standalone `python x_ray_eye.py` harness below already does its + # own win.resize(1000, 800) after construction regardless, so this + # call was never actually needed even for that use case. QTimer.singleShot(0, self._init_queue_status) QTimer.singleShot(0, self._init_gui_trigger) QTimer.singleShot(0, self._init_pixel_clock_options)