Skip to content

Commit

Permalink
fix: don't assume top coordinate is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
schnittchen committed Aug 25, 2014
1 parent 60eb071 commit 202f80b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/guake
Original file line number Diff line number Diff line change
Expand Up @@ -1170,10 +1170,9 @@ class Guake(SimpleGladeApp):
window_rect.x += 0
elif halignment == ALIGN_RIGHT:
window_rect.x += total_width - window_rect.width
window_rect.y = 0
if height_percents < total_height:
if valignment == ALIGN_BOTTOM:
window_rect.y = (total_height - window_rect.height)
window_rect.y += (total_height - window_rect.height)

return window_rect

Expand Down

0 comments on commit 202f80b

Please sign in to comment.