summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-04 15:17:28 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-04-24 20:54:25 +0200
commitbad4cbf0f615d092f9a4ed4edc6ac66b54055567 (patch)
tree7cfdb4df1f7467c100c505e194b4ecbf0ed8cc47
parentBetter handling of filelocs (diff)
downloadcore-bad4cbf0f615d092f9a4ed4edc6ac66b54055567.tar.gz
core-bad4cbf0f615d092f9a4ed4edc6ac66b54055567.zip
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> (cherry picked from commit 66cd3c57f4f7b0b7b6dc38196b932a0a66f846fd) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114421 Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/animations/CustomAnimationList.hxx6
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; }