diff dwtest.c @ 2588:8253e17b20ad

iOS: Remove some bogus secondary color code in DWBox. Add fallback code to give general sizes for DWCalendar widgets... because intrinsicContentSize is returing -1,-1. Use size autodetection for calendar when packing in dwtest.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 24 May 2021 23:29:15 +0000
parents 2acc7ba5dea0
children 99fdcb7f2a2a
line wrap: on
line diff
--- a/dwtest.c	Mon May 24 20:32:05 2021 +0000
+++ b/dwtest.c	Mon May 24 23:29:15 2021 +0000
@@ -1608,9 +1608,9 @@
     dw_window_set_color(buttonsbox, DW_CLR_RED, DW_CLR_RED);
 
     calbox = dw_box_new(DW_HORZ, 0);
-    dw_box_pack_start(notebookbox5, calbox, 500, 200, TRUE, TRUE, 1);
+    dw_box_pack_start(notebookbox5, calbox, 0, 0, TRUE, TRUE, 1);
     cal = dw_calendar_new(100);
-    dw_box_pack_start(calbox, cal, 180, 120, TRUE, TRUE, 0);
+    dw_box_pack_start(calbox, cal, -1, -1, TRUE, TRUE, 0);
 
     dw_calendar_set_date(cal, 2019, 4, 30);