-
Notifications
You must be signed in to change notification settings - Fork 635
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
DYN-7945 pin home button when reducing library size #15692
Conversation
- pin the home button similar to the tab items
UI Smoke TestsTest: success. 11 passed, 0 failed. |
@@ -3085,6 +3088,28 @@ private void TabItem_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) | |||
this.dynamoViewModel.ShowStartPage = false; | |||
} | |||
|
|||
private void PinHomeButton() | |||
{ | |||
const int FirstTabItemMinimumLeftMarginOffset = 230; |
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.
These constants are defined in UpdateWorkspaceTabSizes also, can you put them in the class and remove duplicates.
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.
I was hesitant to touch the DynamoView class further, but thought about it too. That's now done, but I opted to keep the class variables close to the first place where they are used to reduce clutter.
LGTM with one comment. |
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.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7945
Purpose
We calculate and limit the leftmost position of the tabs in the Dynamo screen. After recently implementing a Home button, this PR ensures we follow a similar principle for pinning the Home button consistent with the Tab Items.
UI Changes
The
Home
button will now only travel as far to the left as required to not overlap the button row.Declarations
Check these if you believe they are true
*.resx
filesRelease Notes
Reviewers
@QilongTang
FYIs
(FILL ME IN, Optional) Names of anyone else you wish to be notified of