@@ -146,7 +146,7 @@ CompositeDisposable disposables
146146 viewModel
147147 . ShowTooltipInteraction . RegisterHandler ( ctx =>
148148 {
149- view . ShowTooltip ( ctx . Input ) ;
149+ view . ShowTooltip ( ctx . Input , viewModel . Scale ) ;
150150 ctx . SetOutput ( System . Reactive . Unit . Default ) ;
151151 } )
152152 . DisposeWith ( disposables ) ;
@@ -305,7 +305,7 @@ HierarchyGridViewModel viewModel
305305 args . Handled = true ;
306306 }
307307
308- private void ShowTooltip ( PositionedCell pCell )
308+ private void ShowTooltip ( PositionedCell pCell , double scale )
309309 {
310310 _tooltip . Hide ( ) ;
311311
@@ -323,13 +323,8 @@ private void ShowTooltip(PositionedCell pCell)
323323
324324 _tooltipRectangle . Width = pCell . Width - 6 ;
325325 _tooltipRectangle . Height = pCell . Height - 6 ;
326- Canvas . SetLeft ( _tooltipRectangle , pCell . Left + 3 ) ;
327- Canvas . SetTop ( _tooltipRectangle , pCell . Top + 3 ) ;
328-
329- // var border = new Border() { HorizontalAlignment = HorizontalAlignment.Stretch };
330- // border.Background = Brushes.Wheat;
331- // border.Child = new TextBlock() { Text = text.Trim() };
332- // _tooltip.Content = border;
326+ Canvas . SetLeft ( _tooltipRectangle , ( pCell . Left * scale ) + 3 ) ;
327+ Canvas . SetTop ( _tooltipRectangle , ( pCell . Top * scale ) + 3 ) ;
333328
334329 _tooltip . Content = text . Trim ( ) ;
335330 _tooltip . Placement = PlacementMode . Bottom ;
0 commit comments