diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2019-09-27 19:45:46 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-10-10 10:46:30 +0200 |
commit | ad02da65c066b1860ebe705980ee86403bdedf00 (patch) | |
tree | 409b999ee4b640f35522285b1ecd5d8fd6685086 | |
parent | 7cbfaf9a24366549e4897d22bdef01230feb5333 (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/79753
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | sw/source/uibase/sidebar/PageSizeControl.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/uibase/sidebar/PageSizeControl.cxx b/sw/source/uibase/sidebar/PageSizeControl.cxx index c5c7a9bbda73..c1c0d876d325 100644 --- a/sw/source/uibase/sidebar/PageSizeControl.cxx +++ b/sw/source/uibase/sidebar/PageSizeControl.cxx @@ -76,6 +76,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); |