From dedae21a682e0acf24664d28eedd71679f32fe94 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Tue, 16 Nov 2021 13:19:13 -0500 Subject: [PATCH] fix width of password edit --- minigui.d | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/minigui.d b/minigui.d index 4e90c45..6544519 100644 --- a/minigui.d +++ b/minigui.d @@ -7553,6 +7553,13 @@ class TableView : Widget { gets 0. This can cause a column to shrink out of proportion when passing the scroll threshold. + It is important to still set a fixed width (that is, to populate the + `width` field) even if you use the percents because that will be the + default minimum in the event of a scroll bar appearing. + + The percents total in the column can never exceed 100 or be less than 0. + Doing this will trigger an assert error. + History: Added November 10, 2021 (dub v10.4) +/ @@ -7710,6 +7717,12 @@ class TableView : Widget { +/ void delegate(int row, int column, scope void delegate(in char[]) sink) getData; + + + + // i want to be able to do things like draw little colored things to show red for negative numbers + // or background color indicators or even in-cell charts + // void delegate(int row, int column, WidgetPainter painter, int width, int height, in char[] text) drawCell; } version(custom_widgets) @@ -8649,7 +8662,7 @@ class StatusBar : Widget { private Parts _parts; /// - @property Parts parts() { + final @property Parts parts() { return _parts; } @@ -10406,6 +10419,8 @@ class PasswordEdit : EditableTextWidget { override bool showingHorizontalScroll() { return false; } } + override int flexBasisWidth() { return 250; } + /// this(Widget parent) { super(parent);