#16037·OrcaSlicer

create_dock_panel() ignores dock width when called from on_load()

Author: casas83Created Oct 1, 2026Updated Oct 1, 2026
Labelsbug

Is this issue reproducible in the latest nightly build?

  • I have checked the latest nightly build and the issue is still reproducible

Is there an existing issue for this problem?

  • I have searched the existing issues

OrcaSlicer Version

2.5.0 build 94266c28

Regression compared to a previous version

No response

Operating System (OS)

Linux

OS Version

Ubuntu 26.04.1 LTS

Additional system information

No response

Printer

Artillery Sidewinder X2

How to reproduce

  1. Create a Python plugin based on ScriptPluginCapabilityBase.

  2. From on_load(), create a dock panel:

orca.host.ui.create_dock_panel( html="

TEST

", title="TEST", width=320, height=480, dock="right" )

  1. Activate the plugin and restart OrcaSlicer.

  2. The panel opens automatically, but the right dock is only about 20-50 px wide instead of the requested 320.

  3. Move the exact same create_dock_panel() call to execute().

  4. Run the plugin manually using Plugins -> Run.

  5. The panel now opens at the expected width of approximately 320 px.

Additional test: I also tried calling create_dock_panel() from a background thread one second after on_load(). The result is the same: the dock still opens at its minimum width.

Actual results

When the dock panel is created from on_load(), it opens automatically but is extremely narrow (approximately 20-50 px), despite width=320 being specified.

The same create_dock_panel() call made from execute() via Plugins -> Run opens at the correct width.

The saved window_layout contains:

bestw=320 floatw=320 dock_size(2,0,0)=20

Changing dock_size manually to 320 does not persist: OrcaSlicer recalculates it to approximately 20 when restarted.

Expected results

A dock panel created from on_load() with width=320 and dock="right" should open at approximately the requested 320 DIP width, just as the same panel does when created from execute() via Plugins -> Run.

The panel should therefore be usable immediately after OrcaSlicer starts without requiring the user to manually run the plugin.

orca-log.zip

dock-panel-bug.zip

Project file & Debug log uploads

Attached:

  • Zipped project file
  • Zipped log folder

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response