[mono/monodevelop] 509a5109: Fixed 'Bug 15144 - Itemized errors/warnings in error/warning popovers
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <0000014182257841-ada78388-28cd-4798-ae12-525774aa91f8-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/monodevelop
Compare: https://github.com/mono/monodevelop/compare/eaf9ccb8f615...509a5109bbb8
Commit: 509a5109bbb8c9a30405aee2c23aeeabc4ab922b
Author: Mike Krüger <[email protected]> (mkrueger)
Date: 2013-10-04 06:24:53 GMT
URL: https://github.com/mono/monodevelop/commit/509a5109bbb8c9a30405aee2c23aeeabc4ab922b
Fixed 'Bug 15144 - Itemized errors/warnings in error/warning popovers
are 1px too close vertically.'.
Changed paths:
M main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/MessageBubbleCache.cs
Modified: main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/MessageBubbleCache.cs
===================================================================
@@ -109,7 +109,7 @@ public MessageBubblePopoverWindow (MessageBubbleCache cache, MessageBubbleTextMa
// Layout constants
const int verticalTextBorder = 10;
- const int verticalTextSpace = 6;
+ const int verticalTextSpace = 7;
const int textBorder = 12;
const int iconTextSpacing = 8;
@@ -176,7 +176,7 @@ protected override void OnDrawContent (Gdk.EventExpose evnt, Cairo.Context g)
g.Translate (
textBorder,
- y + verticalTextSpace / 2
+ y + verticalTextSpace / 2 + 1 + Math.Max (0, (h - icon.Height) / 2)
);
Gdk.CairoHelper.SetSourcePixbuf (g, icon, 0, 0);
g.Paint ();
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches