-
Notifications
You must be signed in to change notification settings - Fork 634
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
T1.5-Modify the VisualDifferenceViewer so text wraps instead of using scrollviewers #10932
T1.5-Modify the VisualDifferenceViewer so text wraps instead of using scrollviewers #10932
Conversation
* add ScriptMigrator * Add visual difference viewer * Update PythonMigrationViewExtension.cs * Add tooltip description to migration assistant * updates * comment updates * comment updates
* add ScriptMigrator * Add visual difference viewer * Added methods for updating the ScriptEditors with the migrated code * Update PythonMigrationViewExtension.cs * Add tooltip description to migration assistant * updates * comment updates * comment updates * Update ScriptEditorWindow.xaml.cs * Update PythonMigrationViewExtension.csproj * Update PythonMigrationViewExtension.csproj * comment updates * Revert "comment updates" This reverts commit 2d2332a. * comment updates * Update PythonMigrationAssistantViewModel.cs * comment updates 2
* add ScriptMigrator * Add visual difference viewer * Added methods for updating the ScriptEditors with the migrated code * Update PythonMigrationViewExtension.cs * add mechanisme to save Python 2 backup * Add tooltip description to migration assistant * updates * comment updates * comment updates * Update ScriptEditorWindow.xaml.cs * Update PythonMigrationViewExtension.csproj * Update PythonMigrationViewExtension.csproj * comment updates * Revert "comment updates" This reverts commit 2d2332a. * comment updates * Update PythonMigrationAssistantViewModel.cs * comment updates 2 * small clean ups * Update PythonMigrationAssistantViewModel.cs
…dsen/Dynamo into T1.3-SavePython2BackupFile
…ionAssistantTests
To solve conflicts ahead of time and incorporate fixes, i've rebased this on the branch for #10928 , so please merge that first and then this one. |
The width of the code (text) area can't be matched when window size is exactly the same as we're always going to have the additional space for the Also used the InlineSide by side |
also allow for slightly larger vertical height for Before/After label as it was hard to spot
That should wrap this one up as well, please have a look @mmisol , @mjkkirschner |
Looking pretty epic to me @radumg! Thank you. |
@Amoursol Bringing this to your attention because it got hidden in a conversation #10932 (review) To summarize, I can see a slight difference in wrapping that @radumg was not able to reproduce on his end. It could be related to a combination of DPI settings and screen resolution but we are not sure. How do you think we should deal with this? |
@mmisol Unless we can reproduce the issue, in which case we should definitely resolve, I am fine with minor visual differences. Do we have a 3rd machine we can test on? One of our Virtual test machines? It may be a Mac vs. Windows issue. |
Thanks for testing @SHKnudsen . Still wraps different for me but this should be good to go. I'll delay approval until we merge the other PR, just in case to prevent any issues. |
@@ -19,6 +19,8 @@ internal BaseDiffViewer(PythonMigrationAssistantViewModel viewModel) | |||
{ | |||
ViewModel = viewModel; | |||
DataContext = viewModel; | |||
// The diff viewer is initialized with the SideBySide view | |||
SetSideBySideWindowWidth(); |
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.
@SHKnudsen , let's put this after the initialize component
method call
@SHKnudsen @radumg #10928 got merged. Could you rebase this PR so that we can approve it and merge it too? |
@mmisol should be ready now. |
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.
Thanks @SHKnudsen . Tests worked fine here https://master-5.jenkins.autodesk.com/job/Dynamo/job/DynamoSelfServe/job/pullRequestValidation/1201/. I'll proceed and merge.
Based on PR #10928 , please merge that first
Purpose
This PR addresses the wish to have the text in the Code Difference viewer wrap instead of using scrollviewers, to make it more in style with the Python script editor. I have looked into modifying the
DiffPlex
viewer but couldn't find a way to do this. This PR creates new views that behaves and looks like the original DiffPlex viewer but adds wrapping to the text.The caveat of this approach is that it adds a lot more code than using the DiffPlex viewer. We still need the Dependence on DiffPlex but we can remove the reference to DiffPlex.Wpf
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@mmisol
FYIs
@mjkkirschner
@QilongTang
@Amoursol
@radumg