Skip to content

Commit

Permalink
- Made text wrap when documentation too long in Super Quick Info
Browse files Browse the repository at this point in the history
  • Loading branch information
wmjordan committed Jan 2, 2019
1 parent 61b7e0b commit cdd6c38
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Codist/Controls/ThemedText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ public ThemedTipDocument AppendTitle(int imageId, string text) {
return this;
}
public void ApplySizeLimit() {
var w = Config.Instance.QuickInfoMaxWidth - (WpfHelper.IconRightMargin + ThemeHelper.DefaultIconSize + WpfHelper.SmallMarginSize + WpfHelper.SmallMarginSize + 22/*scrollbar width*/);
if (w <= 0) {
return;
var w = Config.Instance.QuickInfoMaxWidth;
if (w == 0) {
w = Application.Current.MainWindow.RenderSize.Width;
}
w = w - (WpfHelper.IconRightMargin + ThemeHelper.DefaultIconSize + WpfHelper.SmallMarginSize + WpfHelper.SmallMarginSize + 22/*scrollbar width*/);
foreach (var item in Children) {
var r = item as ThemedTipParagraph;
if (r != null) {
Expand Down

0 comments on commit cdd6c38

Please sign in to comment.