[gnome-maps/wip/mlundblad/reposition-bubbles] mapMarker: Update bubble position on size change
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/reposition-bubbles] mapMarker: Update bubble position on size change
- Date: Tue, 2 Mar 2021 21:12:11 +0000 (UTC)
commit 71801b1ec65dc237073eb5c08c4f53eba816a700
Author: Marcus Lundblad <ml update uu se>
Date: Tue Mar 2 22:09:17 2021 +0100
mapMarker: Update bubble position on size change
Update bubble position when bubble size changes.
This fixes an issue where the bubble sometimes
grows upwards covering the headerbar.
src/mapMarker.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/mapMarker.js b/src/mapMarker.js
index b5a0e7fa..7fb45201 100644
--- a/src/mapMarker.js
+++ b/src/mapMarker.js
@@ -335,6 +335,9 @@ var MapMarker = GObject.registerClass({
this._bubble.destroy();
delete this._bubble;
});
+
+ this.bubble.connect('size-allocate',
+ () => this._positionBubble(this.bubble));
}
_isInsideView() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]