[Libreoffice-commits] core.git: Branch 'libreoffice-7-1' - sd/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 9 16:11:40 UTC 2021
sd/source/ui/animations/CustomAnimationList.hxx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
New commits:
commit 0d20074eb112186e0e2fa4241b57777a335eb68c
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Mar 4 15:17:28 2021 +0000
Commit: Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Tue Mar 9 17:11:06 2021 +0100
make both 'empty' widget and its treeview replacement the same size
so on flipping one visible vs the other the panel scrollbar position
is equally valid for each mode
Change-Id: Iae422c30eb8b752c407070b66852fe23fdc38912
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111925
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
diff --git a/sd/source/ui/animations/CustomAnimationList.hxx b/sd/source/ui/animations/CustomAnimationList.hxx
index f704e1b92b4f..eae9e2aead2d 100644
--- a/sd/source/ui/animations/CustomAnimationList.hxx
+++ b/sd/source/ui/animations/CustomAnimationList.hxx
@@ -110,7 +110,11 @@ public:
void set_sensitive(bool bSensitive) { mxTreeView->set_sensitive(bSensitive); }
int get_height_rows(int nRows) { return mxTreeView->get_height_rows(nRows); }
int get_approximate_digit_width() const { return mxTreeView->get_approximate_digit_width(); }
- void set_size_request(int nWidth, int nHeight) { mxTreeView->set_size_request(nWidth, nHeight); }
+ void set_size_request(int nWidth, int nHeight)
+ {
+ mxTreeView->set_size_request(nWidth, nHeight);
+ mxEmptyLabel->set_size_request(nWidth, nHeight);
+ }
void unselect_all() { mxTreeView->unselect_all(); }
weld::TreeView& get_widget() { return *mxTreeView; }
More information about the Libreoffice-commits
mailing list