diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-03-11 17:08:18 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-03-11 23:09:18 +0100 |
commit | 212a40aaf7ec3316d5209b688f5f79821f99fbdc (patch) | |
tree | 444e5022cc200fe72144b832b9ada06d82652a9d | |
parent | 897f6f6252f38e93764aa0e72135768ab1ec3679 (diff) |
widget theme: change the tab item height to (min) 32 px
Change-Id: I1919300071a06242fe832880b46c944989daa4b6
Reviewed-on: https://gerrit.libreoffice.org/69057
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
-rw-r--r-- | vcl/source/gdi/FileDefinitionWidgetDraw.cxx | 10 | ||||
-rw-r--r-- | vcl/uiconfig/theme_definitions/definition.xml | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx index 213547cc2d3a..64ef751c7476 100644 --- a/vcl/source/gdi/FileDefinitionWidgetDraw.cxx +++ b/vcl/source/gdi/FileDefinitionWidgetDraw.cxx @@ -776,10 +776,12 @@ bool FileDefinitionWidgetDraw::getNativeControlRegion( if (!pPart) return false; - rNativeBoundingRegion = tools::Rectangle( - rBoundingControlRegion.TopLeft(), - Size(rBoundingControlRegion.GetWidth() + pPart->mnMarginWidth, - rBoundingControlRegion.GetHeight() + pPart->mnMarginHeight)); + long nWidth = std::max(rBoundingControlRegion.GetWidth() + pPart->mnMarginWidth, + long(pPart->mnWidth)); + long nHeight = std::max(rBoundingControlRegion.GetHeight() + pPart->mnMarginHeight, + long(pPart->mnHeight)); + + rNativeBoundingRegion = tools::Rectangle(aLocation, Size(nWidth, nHeight)); rNativeContentRegion = rNativeBoundingRegion; return true; } diff --git a/vcl/uiconfig/theme_definitions/definition.xml b/vcl/uiconfig/theme_definitions/definition.xml index e91953109554..5a4be114ea97 100644 --- a/vcl/uiconfig/theme_definitions/definition.xml +++ b/vcl/uiconfig/theme_definitions/definition.xml @@ -320,7 +320,7 @@ </progress> <tabitem> - <part value="Entire" margin-width="20" margin-height="6"> + <part value="Entire" margin-width="8" height="32"> <state selected="false" extra="first"> <external source="tabitem-first.svgx" /> </state> |