summaryrefslogtreecommitdiff
path: root/src/dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialog.cc')
-rw-r--r--src/dialog.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dialog.cc b/src/dialog.cc
index 51f44562..6112c46b 100644
--- a/src/dialog.cc
+++ b/src/dialog.cc
@@ -261,9 +261,9 @@ int a_Dialog_user_password(const char *message, UserPasswordCB cb, void *vp)
msg->align(FL_ALIGN_INSIDE | FL_ALIGN_TOP_LEFT | FL_ALIGN_WRAP);
fl_font(msg->labelfont(), msg->labelsize());
+ msg_w -= 6; /* The label doesn't fill the entire box. */
fl_measure(msg->label(), msg_w, msg_h, 0); /* fl_measure wraps at msg_w */
- msg_w = MIN(msg_w, msg->w());
- msg->size(msg_w, msg_h);
+ msg->size(msg->w(), msg_h);
window->add(msg);
/* inputs */