From f2a5775be4453bf7f8f8abe11e30a3c8a24a67e7 Mon Sep 17 00:00:00 2001 From: Pavel Stupnikov Date: Sun, 29 Mar 2015 18:38:14 +0300 Subject: [PATCH] fix dropdown arrow clickable area in double/quad size --- src/widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widget.cpp b/src/widget.cpp index da0a15fc88..4cb02dd0e5 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -2524,10 +2524,10 @@ void NWidgetLeaf::Draw(const Window *w) bool NWidgetLeaf::ButtonHit(const Point &pt) { if (_current_text_dir == TD_LTR) { - int button_width = this->pos_x + this->current_x - 12; + int button_width = this->pos_x + this->current_x - NWidgetLeaf::dropdown_dimension.width; return pt.x < button_width; } else { - int button_left = this->pos_x + 12; + int button_left = this->pos_x + NWidgetLeaf::dropdown_dimension.width; return pt.x >= button_left; } }