Skip to main content

width

The panel drawer's width in pixels.

Type​

integer, default 676 in the core build

Example​

m.maestro.observeFieldScoped("width", "onMaestroWidth")

sub onMaestroWidth(event as object)
' Reflow your layout alongside the panel when its width changes.
newWidth = event.getData()
' your player or companion layout update here
end sub

Notes​

  • width follows the page: when every tab is a designed panel whose layout names a design width, the drawer takes the widest of them; a page with any native panel keeps the build's configured width. Observe this field and reflow your layout when it changes.
  • The drawer's slide-in position is adjusted alongside width automatically by the SDK.
  • Writing to width from host code does not move the drawer; only the SDK adjusts it.
  • See height.