summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-18 12:01:44 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-18 12:02:58 +0100
commit276732f3068cac65dd607b4f78abdcd918ed30ad (patch)
tree2c3034d9c389f7370a10797c04449daf53d8bf55 /vcl
parent4009470eca063b7001941cc21580617f0288298c (diff)
Resolves: tdf#97065 gtk3: Date field displayed incomplete
a spinfield with a dropdown is sort of weird, we should probably revisit this and see if SPIN and DROPDOWN are mutually exclusive and for DROPDOWN use ComboBox styles Change-Id: Id7f5c54974dc2dfd63ab30df18e14f6a67a8ea90
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/spinfld.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index 40c2954dc91b..395b0c214db4 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -715,7 +715,9 @@ void SpinField::Resize()
// adjust position and size of the edit field
if (GetNativeControlRegion(ControlType::Spinbox, ControlPart::SubEdit, aArea, ControlState::NONE,
- aControlValue, OUString(), aBound, aContent))
+ aControlValue, OUString(), aBound, aContent) &&
+ // there is just no useful native support for spinfields with dropdown
+ !(GetStyle() & WB_DROPDOWN))
{
// convert back from border space to local coordinates
aPoint = pBorder->ScreenToOutputPixel(OutputToScreenPixel(aPoint));