From a770766147b3f126a2fab63f269610c9c63aa2f2 Mon Sep 17 00:00:00 2001 From: corvid Date: Fri, 30 Nov 2012 06:47:37 +0000 Subject: again I think I have it just right now. --- dw/fltkui.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'dw/fltkui.cc') 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; -- cgit v1.2.3