Browse Source

Fixed SD2-1163: Text is shown above text editor's limits when scrolling text horizontally.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1910 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
efe9804358
  1. 2
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs
  2. 3
      src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextView.cs

2
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextAreaControl.cs

@ -263,6 +263,8 @@ namespace ICSharpCode.TextEditor @@ -263,6 +263,8 @@ namespace ICSharpCode.TextEditor
hRuler = new HRuler(textArea);
Controls.Add(hRuler);
ResizeTextArea();
} else {
hRuler.Invalidate();
}
} else {
if (hRuler != null) {

3
src/Libraries/ICSharpCode.TextEditor/Project/Src/Gui/TextView.cs

@ -666,7 +666,8 @@ namespace ICSharpCode.TextEditor @@ -666,7 +666,8 @@ namespace ICSharpCode.TextEditor
return width;
}
const TextFormatFlags textFormatFlags = TextFormatFlags.NoPadding | TextFormatFlags.NoPrefix;
const TextFormatFlags textFormatFlags =
TextFormatFlags.NoPadding | TextFormatFlags.NoPrefix | TextFormatFlags.PreserveGraphicsClipping;
#endregion
#region Conversion Functions

Loading…
Cancel
Save