From dc7d8d359d2eea9ba73da3e1b877ce62bb8bab1a Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Tue, 11 Nov 2025 12:55:00 +0000 Subject: [PATCH] fix listbox bug git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@667 b9cfdab3-6d41-4d17-bbe4-086880011989 --- src/widget/listbox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widget/listbox.c b/src/widget/listbox.c index 23e5dd0..448efa0 100644 --- a/src/widget/listbox.c +++ b/src/widget/listbox.c @@ -307,6 +307,9 @@ static int create(MwWidget handle) { MwSetDefault(handle); + MwSetInteger(handle, MwNleftPadding, 0); + MwSetInteger(handle, MwNhasHeading, 0); + resize(handle); lb->list = NULL; lb->selected = -1; @@ -314,9 +317,6 @@ static int create(MwWidget handle) { lb->width = NULL; lb->changed = 0; - MwSetInteger(handle, MwNleftPadding, 0); - MwSetInteger(handle, MwNhasHeading, 0); - return 0; }