-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional clarification on GuiBase2d.AbsolutePosition #956
base: main
Are you sure you want to change the base?
Conversation
Proposed change to the AbsolutePosition property's note: "Note that the object's AnchorPoint influences AbsolutePosition." The note, while true, is a bit misleading, and more clarification is needed to ensure users know AbsolutePosition always represents the top-left corner of a GuiBase2d element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Cens-r, thanks so much for helping improve the Roblox creator documentation! Our technical writing team will review your pull request soon. In the meantime, please ensure you've read through the README.md, contribution guidelines, and style recommendations.
renders as a result of its ancestors' sizes and positions. Note that the | ||
object's `Class.GuiObject.AnchorPoint|AnchorPoint` influences |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renders as a result of its ancestors' sizes and positions. Note that the | |
object's `Class.GuiObject.AnchorPoint|AnchorPoint` influences | |
renders as a result of its ancestors' sizes and positions. Note that |
`Class.GuiBase2d.AbsolutePosition|AbsolutePosition`, but it will always | ||
represent the top-left corner of the `Class.GuiBase2d` element. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`Class.GuiBase2d.AbsolutePosition|AbsolutePosition`, but it will always | |
represent the top-left corner of the `Class.GuiBase2d` element. | |
`Class.GuiBase2d.AbsolutePosition|AbsolutePosition` always | |
represents the top-left corner of the `Class.GuiBase2d` element. |
IMHO we can just omit mention of AnchorPoint here, since that changes the position of the element on screen and does (as previously stated) affect AbsolutePosition, but the main takeaway is that AbsolutePosition represents the top-left corner of the object. |
Changes
To avoid potentially misleading vagueness, this PR makes minor changes to the note's wording within the description of the
AbsolutePosition
property ofGuiBase2d
elements. Clarification that the property will always represent the top-left corner of aGuiBase2d
, regardless of the ambiguous "influences"AnchorPoint
has on theAbsolutePosition
.Checks
By submitting your pull request for review, you agree to the following: