This commit is contained in:
Rudy Huyn 2019-03-28 02:41:28 -07:00
commit 48fd72525b

View file

@ -55,7 +55,7 @@ AutomationPeer^ OverflowTextBlock::OnCreateAutomationPeer()
void OverflowTextBlock::OnTokensUpdatedPropertyChanged(bool /*oldValue*/, bool newValue) void OverflowTextBlock::OnTokensUpdatedPropertyChanged(bool /*oldValue*/, bool newValue)
{ {
if ((m_expressionContainer != nullptr) && (newValue)) if (m_expressionContainer != nullptr && newValue)
{ {
m_expressionContainer->UpdateLayout(); m_expressionContainer->UpdateLayout();
m_expressionContainer->ChangeView(m_expressionContainer->ScrollableWidth, nullptr, nullptr, true); m_expressionContainer->ChangeView(m_expressionContainer->ScrollableWidth, nullptr, nullptr, true);
@ -126,7 +126,7 @@ void OverflowTextBlock::OnScrollClick(_In_ Object^ sender, _In_ RoutedEventArgs^
void OverflowTextBlock::UpdateScrollButtons() void OverflowTextBlock::UpdateScrollButtons()
{ {
if (m_itemsControl == nullptr && m_expressionContainer == nullptr) if (m_itemsControl == nullptr || m_expressionContainer == nullptr)
{ {
return; return;
} }