- box = utk_hbox(uiwin_new, UTK_DEF_PADDING, UTK_DEF_SPACING);
- utk_button(box, "OK", 0, 0, cb_new_ok, 0);
- utk_button(box, "Cancel", 0, 0, cb_cancel, uiwin_new);
+ hbox = utk_hbox(vbox, UTK_DEF_PADDING, UTK_DEF_SPACING);
+ utk_button(hbox, "OK", 0, 0, cb_new_ok, 0);
+ utk_button(hbox, "Cancel", 0, 0, cb_cancel, uiwin_new);
+ pad = utk_get_padding(uiwin_new);
+ utk_set_size(uiwin_new, utk_get_width(vbox) + pad * 2.0f, utk_get_height(vbox) + pad * 2.0f);
+