Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 9dcfbfb

Browse files
committed
Make Sure Source Tree Titles Truncate If Too Big
Fixes #554
1 parent 54d149e commit 9dcfbfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeHub.iOS/Views/SourceTitleView.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public override void LayoutSubviews()
7878
_label.SizeToFit();
7979
var labelFrame = _label.Frame;
8080
labelFrame.Height = _label.Frame.Height > halfHeight ? halfHeight : _label.Frame.Height;
81+
labelFrame.Width = labelFrame.Width >= Frame.Width ? Frame.Width - 16f : labelFrame.Width;
8182
_label.Frame = labelFrame;
8283
_label.Center = new CoreGraphics.CGPoint(Frame.Width / 2f, _label.Frame.Height / 2f + (small ? 2f : 3f));
8384

0 commit comments

Comments
 (0)