From 89e6931d9d2b68b1a1ba745e6fbc7a0783999991 Mon Sep 17 00:00:00 2001 From: miruka Date: Mon, 20 Jul 2020 21:39:52 -0400 Subject: [PATCH] Fix ViewerButtons implicit width calculation --- TODO.md | 4 +--- src/gui/Popups/ImageViewerPopup/ViewerButtons.qml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 2968d161..a5f813b7 100644 --- a/TODO.md +++ b/TODO.md @@ -1,10 +1,8 @@ # TODO - Image viewer: - - fix width - open externally in context menu in timeline thumbnail, also button - - hflickable support kinetic scrolling disabler and speed/decel settings - - keyboard controls + - hflickable: support kinetic scrolling disabler - clipboard preview doesn't update when copied image changes until second time - Avatar tooltip can get displayed in front of presence menu diff --git a/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml b/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml index 113c7c77..871a92e1 100644 --- a/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml +++ b/src/gui/Popups/ImageViewerPopup/ViewerButtons.qml @@ -9,7 +9,7 @@ HFlow { property HPopup viewer readonly property real calculatedWidth: - (close.implicitWidth * visibleChildren.length) + theme.spacing + utils.sumChildrenImplicitWidths(visibleChildren) HButton {