summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2019-09-27 19:45:46 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2019-09-28 11:01:08 +0200
commit40c2e33ce47ff1e51f412e20f306b0849517ebcb (patch)
treea224a94b8478caaaad7c1edf9b8e64d4e74741dd /sw
parentab09184efffdd70c5c89f20895132c7900777f7d (diff)
tdf#126321: avoid flickering in page size popup
In a Tabbed notebookbar, Layout - Page Size Change-Id: I74ab54e96486de960d1ccc7bcb3c2679e25a6e9e Reviewed-on: https://gerrit.libreoffice.org/79752 Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org> Tested-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/sidebar/PageSizeControl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/PageSizeControl.cxx b/sw/source/uibase/sidebar/PageSizeControl.cxx
index 6901d54ea284..02dbfe007343 100644
--- a/sw/source/uibase/sidebar/PageSizeControl.cxx
+++ b/sw/source/uibase/sidebar/PageSizeControl.cxx
@@ -77,6 +77,12 @@ PageSizeControl::PageSizeControl( sal_uInt16 nId, vcl::Window* pParent )
get(maMoreButton, "moreoptions");
get(maContainer, "container");
mpSizeValueSet = VclPtr<svx::sidebar::ValueSetWithTextControl>::Create( maContainer.get(), WB_BORDER );
+
+ // Avoid flicker when hovering over the menu items.
+ if (!IsNativeControlSupported(ControlType::Pushbutton, ControlPart::Focus))
+ // If NWF renders the focus rects itself, that breaks double-buffering.
+ mpSizeValueSet->RequestDoubleBuffering(true);
+
maWidthHeightField = VclPtr<MetricField>::Create( maContainer.get(), 0 );
maWidthHeightField->Hide();
maWidthHeightField->SetUnit(FieldUnit::CM);