combobox should close when the parent window is resized
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
4d6d459920
commit
47c2a74d74
1 changed files with 8 additions and 1 deletions
|
|
@ -183,12 +183,19 @@ static void func_handler(MwWidget handle, const char* name, void* out, va_list v
|
|||
}
|
||||
}
|
||||
|
||||
static void parent_resize(MwWidget handle) {
|
||||
MwComboBox cb = handle->internal;
|
||||
if(cb->opened) {
|
||||
click(handle);
|
||||
}
|
||||
}
|
||||
|
||||
MwClassRec MwComboBoxClassRec = {
|
||||
wcreate, /* create */
|
||||
destroy, /* destroy */
|
||||
draw, /* draw */
|
||||
click, /* click */
|
||||
NULL, /* parent_resize */
|
||||
parent_resize, /* parent_resize */
|
||||
prop_change, /* prop_change */
|
||||
NULL, /* mouse_move */
|
||||
MwForceRender2, /* mouse_up */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue