Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
[Gtk] Fix bottom arrow style for popover
Browse files Browse the repository at this point in the history
  • Loading branch information
garuma committed Mar 25, 2015
1 parent f14c745 commit 07b59be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Xwt.Gtk/Xwt.GtkBackend/PopoverBackend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected override bool OnDrawn (Context cr)
// Triangle
// We first begin by positionning ourselves at the top-center or bottom center of the previous rectangle
var arrowX = bounds.Center.X;
var arrowY = arrowPosition == Xwt.Popover.Position.Top ? calibratedRect.Top + cr.LineWidth : calibratedRect.Bottom - cr.LineWidth;
var arrowY = arrowPosition == Xwt.Popover.Position.Top ? calibratedRect.Top + cr.LineWidth : calibratedRect.Bottom;
cr.MoveTo (arrowX, arrowY);
// We draw the rectangle path
DrawTriangle (cr);
Expand Down

0 comments on commit 07b59be

Please sign in to comment.