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
55/**jsdoc55/**jsdoc
56 * The possible "relative position anchors" of an <code>InteractiveWindow</code>. Used when defining the `relativePosition` property of an `InteractiveWindow`.56 * The possible "relative position anchors" of an <code>InteractiveWindow</code>. Used when defining the `relativePosition` property of an `InteractiveWindow`.
57 * @typedef {object} InteractiveWindow.RelativePositionAnchors57 * @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.
58 * @property {InteractiveWindow.RelativePositionAnchor} TOP_LEFT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the top left of the Interface window.59 * @property {InteractiveWindow.RelativePositionAnchor} TOP_LEFT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the top left of the Interface window.
59 * @property {InteractiveWindow.RelativePositionAnchor} TOP_RIGHT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the top right of the Interface window.60 * @property {InteractiveWindow.RelativePositionAnchor} TOP_RIGHT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the top right of the Interface window.
60 * @property {InteractiveWindow.RelativePositionAnchor} BOTTOM_RIGHT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the bottom right of the Interface window.61 * @property {InteractiveWindow.RelativePositionAnchor} BOTTOM_RIGHT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the bottom right of the Interface window.
61 * @property {InteractiveWindow.RelativePositionAnchor} BOTTOM_LEFT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the bottom left of the Interface window.62 * @property {InteractiveWindow.RelativePositionAnchor} BOTTOM_LEFT - Specifies that the `relativePosition` of the `InteractiveWindow` will be offset from the bottom left of the Interface window.
62 */63 */
63static const QVariantMap RELATIVE_POSITION_ANCHOR {64static const QVariantMap RELATIVE_POSITION_ANCHOR {
65 { "NO_ANCHOR", RelativePositionAnchor::NO_ANCHOR },
64 { "TOP_LEFT", RelativePositionAnchor::TOP_LEFT },66 { "TOP_LEFT", RelativePositionAnchor::TOP_LEFT },
65 { "TOP_RIGHT", RelativePositionAnchor::TOP_RIGHT },67 { "TOP_RIGHT", RelativePositionAnchor::TOP_RIGHT },
66 { "BOTTOM_RIGHT", RelativePositionAnchor::BOTTOM_RIGHT },68 { "BOTTOM_RIGHT", RelativePositionAnchor::BOTTOM_RIGHT },