diff options
author | corvid <corvid@lavabit.com> | 2012-11-30 06:47:37 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-11-30 06:47:37 +0000 |
commit | a770766147b3f126a2fab63f269610c9c63aa2f2 (patch) | |
tree | 8a4f435a42d760b8ba08e3c21642694797deea03 /dw/fltkui.cc | |
parent | c830f4abad882963f55937653265630544c88d49 (diff) |
again
I think I have it just right now.
Diffstat (limited to 'dw/fltkui.cc')
-rw-r--r-- | dw/fltkui.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 25d42c8a..163080a6 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -1202,6 +1202,7 @@ Fl_Widget *FltkListResource::createNewWidget (core::Allocation *allocation) : FL_TREE_SELECT_SINGLE); tree->showroot(0); tree->connectorstyle(FL_TREE_CONNECTOR_NONE); + tree->margintop(0); tree->marginleft(-14); tree->callback(widgetCallback,this); tree->when(FL_WHEN_CHANGED); @@ -1348,9 +1349,10 @@ void FltkListResource::sizeRequest (core::Requisition *requisition) if (showRows < rows) { rows = showRows; } - requisition->width = getMaxItemWidth() + 5 + Fl::scrollbar_size();; - requisition->ascent = (rows * (font->size + font->descent + 1)) + 2; - requisition->descent = font->descent + 3; + requisition->width = getMaxItemWidth() + 5 + Fl::scrollbar_size(); + requisition->descent = font->descent + 2; + requisition->ascent = (rows * (font->size + font->descent + 1)) + 4 - + requisition->descent; } else { requisition->width = 1; requisition->ascent = 1; |