Skip to content
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

Fix some focus issues in Graphing Calculator #868

Merged
merged 1 commit into from
Dec 16, 2019
Merged

Fix some focus issues in Graphing Calculator #868

merged 1 commit into from
Dec 16, 2019

Conversation

rudyhuyn
Copy link
Contributor

Description of the changes:

  • Fix issue with bringing the new equation to the view (scrolling)
  • Prevent the app to give the focus to the next equation when users modify an equation and click somewhere else

How changes were validated:

  • manually

@rudyhuyn rudyhuyn changed the base branch from master to feature/GraphingCalculator December 14, 2019 01:03
@@ -197,7 +197,7 @@ namespace GraphControl::DX
{
auto lineColors = m_graph->GetOptions().GetGraphColors();

if (formulaId >= 0 && formulaId < lineColors.size())
if (formulaId >= 0 && static_cast<unsigned int>(formulaId) < lineColors.size())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to the PR, but vc++ displayed a warning here

m_equationToFocus = nullptr;
tb->FocusTextBox();

unsigned int index;
if (Equations->IndexOf(m_equationToFocus, &index))
if (Equations->IndexOf(copyEquationToFocus, &index))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

m_equationToFocus was set to null before this line

@EriWong EriWong added the graphing calculator Work items related to the graphing calculator feature. label Dec 14, 2019
Copy link
Contributor

@EriWong EriWong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for fixing this

@EriWong EriWong merged commit eb2fa6d into microsoft:feature/GraphingCalculator Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphing calculator Work items related to the graphing calculator feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants