mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed popover placing in AlbumList
This commit is contained in:
@@ -2217,7 +2217,7 @@ class AlbumList(Gtk.IconView):
|
|||||||
if (path:=self.get_cursor()[1]) is not None:
|
if (path:=self.get_cursor()[1]) is not None:
|
||||||
cell=self.get_cell_rect(path, None)[1]
|
cell=self.get_cell_rect(path, None)[1]
|
||||||
rect=self.get_allocation()
|
rect=self.get_allocation()
|
||||||
x=max(min(rect.x+cell.width//2, rect.x+rect.width), rect.x)
|
x=max(min(cell.x+cell.width//2, rect.x+rect.width), rect.x)
|
||||||
y=max(min(cell.y+cell.height//2, rect.y+rect.height), rect.y)
|
y=max(min(cell.y+cell.height//2, rect.y+rect.height), rect.y)
|
||||||
tags=self._store[path][3:6]
|
tags=self._store[path][3:6]
|
||||||
self._album_popover.open(*tags, self, x, y)
|
self._album_popover.open(*tags, self, x, y)
|
||||||
|
|||||||
Reference in New Issue
Block a user