mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-22 05:40:43 +08:00
enhance: ignores $ char when measuring contents in NamedHighlightedTextBlock
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -55,9 +55,10 @@ namespace SourceGit.Views
|
||||
if (string.IsNullOrEmpty(text))
|
||||
return base.MeasureOverride(availableSize);
|
||||
|
||||
var trimmed = text.Replace("$", "");
|
||||
var typeface = new Typeface(FontFamily);
|
||||
var formatted = new FormattedText(
|
||||
Text,
|
||||
trimmed,
|
||||
CultureInfo.CurrentCulture,
|
||||
FlowDirection.LeftToRight,
|
||||
typeface,
|
||||
|
||||
Reference in New Issue
Block a user