diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-03-04 15:17:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-21 20:47:03 +0200 |
commit | 66cd3c57f4f7b0b7b6dc38196b932a0a66f846fd (patch) | |
tree | 177efae6ebc227cd589d6b78c7c3512392179dc2 | |
parent | 99679f4dbfae6eb51a9a76b1cebd87e3d38b0c9c (diff) |
tdf#139305 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@libreoffice.org>
(cherry picked from commit 0d20074eb112186e0e2fa4241b57777a335eb68c)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114438
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sd/source/ui/animations/CustomAnimationList.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |