Merge branch 'master' of https://github.com/HandyOrg/HandyControl
This commit is contained in:
commit
3be68c3010
1 file changed
+1
-1
@@ -46,7 +46,7 @@ namespace HandyControl.Controls
|
|||||||
textBlock.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
|
textBlock.Measure(new Size(double.PositiveInfinity, double.PositiveInfinity));
|
||||||
var width = textBlock.DesiredSize.Width - textBlock.Margin.Left - textBlock.Margin.Right;
|
var width = textBlock.DesiredSize.Width - textBlock.Margin.Left - textBlock.Margin.Right;
|
||||||
|
|
||||||
if(textBlock.RenderSize.Width > width || textBlock.ActualWidth < width || CalcTextWidth(textBlock) > width)
|
if (textBlock.RenderSize.Width > width || textBlock.ActualWidth < width || CalcTextWidth(textBlock) > width)
|
||||||
{
|
{
|
||||||
ToolTipService.SetToolTip(textBlock, textBlock.Text);
|
ToolTipService.SetToolTip(textBlock, textBlock.Text);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user