summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-06-22 18:57:50 +0000
committercorvid <corvid@lavabit.com>2009-06-22 18:57:50 +0000
commitfd38ecd41a055dbfbb93e8935c78c6a4a4b2236a (patch)
treef1a3114787182065536f9dca291a85bb336b4d7d
parent5a747a28a70c7525d34a48b817675d5bfe5de15c (diff)
widgets ascend for textarea and select
-rw-r--r--dw/fltkui.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc
index 695a6152..ba209368 100644
--- a/dw/fltkui.cc
+++ b/dw/fltkui.cc
@@ -697,10 +697,10 @@ void FltkMultiLineTextResource::sizeRequest (core::Requisition *requisition)
(int)::fltk::getwidth ("n", 1) * numCols +
2 * RELIEF_X_THICKNESS;
requisition->ascent =
- font->ascent + RELIEF_Y_THICKNESS;
+ RELIEF_Y_THICKNESS + font->ascent +
+ (font->ascent + font->descent) * (numRows - 1);
requisition->descent =
font->descent +
- (font->ascent + font->descent) * (numRows - 1) +
RELIEF_Y_THICKNESS;
} else {
requisition->width = 1;
@@ -1310,9 +1310,9 @@ void FltkListResource::sizeRequest (core::Requisition *requisition)
* options, at the cost of showing too much whitespace at times.
*/
requisition->width = getMaxStringWidth() + 24;
- requisition->ascent = font->ascent + 2;
- requisition->descent = font->descent + 3 +
- (rows - 1) * (font->ascent + font->descent + 1);
+ requisition->ascent = font->ascent + 2 +
+ (rows - 1) * (font->ascent + font->descent + 1);
+ requisition->descent = font->descent + 3;
} else {
requisition->width = 1;
requisition->ascent = 1;