diff options
author | jcid <devnull@localhost> | 2008-10-16 16:10:43 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-10-16 16:10:43 +0200 |
commit | 355d77ea5d48b88739f40844eb57856f068fe5e6 (patch) | |
tree | 461b6e7083e545d75b1cd0ee7831afa3307ce3c9 /dw | |
parent | df5199dfd52172653dd3ccd0be43f39c21263055 (diff) |
- Tuned input width a bit.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/fltkui.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 9255d7d2..d3136090 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -496,7 +496,7 @@ void FltkEntryResource::sizeRequest (core::Requisition *requisition) FltkFont *font = (FltkFont*)style->font; ::fltk::setfont(font->font,font->size); requisition->width = - (int)::fltk::getwidth ("M", 1) + (int)::fltk::getwidth ("n", 1) * (maxLength == UNLIMITED_MAX_LENGTH ? 10 : maxLength) + 2 * RELIEF_X_THICKNESS; requisition->ascent = font->ascent + RELIEF_Y_THICKNESS; @@ -607,7 +607,7 @@ void FltkMultiLineTextResource::sizeRequest (core::Requisition *requisition) FltkFont *font = (FltkFont*)style->font; ::fltk::setfont(font->font,font->size); requisition->width = - (int)::fltk::getwidth ("X", 1) * numCols + + (int)::fltk::getwidth ("n", 1) * numCols + 2 * RELIEF_X_THICKNESS; requisition->ascent = font->ascent + RELIEF_Y_THICKNESS; |