Closed arnoldas-v closed 9 months ago
Describe the bug canFloat.defaultPosition and canFloat.defaultSize ignored if initial default widget state is WidgetState.Hidden and later set to WidgetState.Floating. Widget always appears at constant small offset from top-left corner.
canFloat.defaultPosition
canFloat.defaultSize
WidgetState.Hidden
WidgetState.Floating
To Reproduce
Example widgetConfig:
{ id: "wid", defaultState: WidgetState.Hidden, content: <div></div>, canFloat: { isResizable: true, defaultPosition: { x: 500, y: 500 }, defaultSize: { width: 500, height: 500 } } }
Later make the widget floating like so: UiFramework.frontstages.activeFrontstageDef?.findWidgetDef("wid")?.setWidgetState(WidgetState.Floating);
UiFramework.frontstages.activeFrontstageDef?.findWidgetDef("wid")?.setWidgetState(WidgetState.Floating);
Expected behavior Widget initially opens at specified location and size.
Desktop (please complete the applicable information):
Hi @arnoldas-v, a fix for this was released today in AppUI 4.6.4, let us know if this fixes your issue!
@raplemie Seems to be fixed on 4.6.4, thanks!
Describe the bug
canFloat.defaultPosition
andcanFloat.defaultSize
ignored if initial default widget state isWidgetState.Hidden
and later set toWidgetState.Floating
. Widget always appears at constant small offset from top-left corner.To Reproduce
Example widgetConfig:
Later make the widget floating like so:
UiFramework.frontstages.activeFrontstageDef?.findWidgetDef("wid")?.setWidgetState(WidgetState.Floating);
Expected behavior Widget initially opens at specified location and size.
Desktop (please complete the applicable information):