History

DEV-2471: Fix an issue with InteractiveWindow anchors that caused windows without anchors to move when the Interface window geometry changes

Zach Fox committed 7 years ago

Commit d65538a1 parent 825fe123 files · +9 −3Browse files

Showing the changes to interface/src/scripting/DesktopScriptingInterface.cpp (1 of 3 files). Show all

Unified · Split

interface/src/scripting/DesktopScriptingInterface.cpp+2−0
@@ -55,12 +55,14 @@ static const QVariantMap DOCK_AREA { · 54 unmodified lines
5555 /**jsdoc
5656 * The possible "relative position anchors" of an <code>InteractiveWindow</code>. Used when defining the `relativePosition` property of an `InteractiveWindow`.
5757 * @typedef {object} InteractiveWindow.RelativePositionAnchors
58+ * @property {InteractiveWindow.RelativePositionAnchor} NO_ANCHOR - Specifies that the position of the `InteractiveWindow` will not be relative to any part of the Interface window.
5859 * @property {InteractiveWindow.RelativePositionAnchor} TOP_LEFT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the top left of the Interface window.
5960 * @property {InteractiveWindow.RelativePositionAnchor} TOP_RIGHT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the top right of the Interface window.
6061 * @property {InteractiveWindow.RelativePositionAnchor} BOTTOM_RIGHT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the bottom right of the Interface window.
6162 * @property {InteractiveWindow.RelativePositionAnchor} BOTTOM_LEFT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the bottom left of the Interface window.
6263 */
6364 static const QVariantMap RELATIVE_POSITION_ANCHOR {
65+ { "NO_ANCHOR", RelativePositionAnchor::NO_ANCHOR },
6466 { "TOP_LEFT", RelativePositionAnchor::TOP_LEFT },
6567 { "TOP_RIGHT", RelativePositionAnchor::TOP_RIGHT },
6668 { "BOTTOM_RIGHT", RelativePositionAnchor::BOTTOM_RIGHT },