This commit is contained in:
IoIxD 2026-01-04 13:06:36 -07:00
commit 54cdd85015
6 changed files with 36 additions and 4 deletions

View file

@ -183,10 +183,18 @@ static void mwSubMenuAppearImpl(MwWidget handle, MwMenu menu, MwPoint* point, in
MwLLMakeToolWindow(handle->lowlevel);
MwLLDetach(handle->lowlevel, &p);
if(MwGetInteger(handle, MwNy) + sz.height > rc.height) {
MwVaApply(handle,
MwNy, rc.height - sz.height,
NULL);
if(handle->lowlevel->common.coordinate_type == MwCoordinatesGlobal) {
if(MwGetInteger(handle, MwNy) + sz.height > rc.height) {
MwVaApply(handle,
MwNy, rc.height - sz.height,
NULL);
}
} else {
if(MwGetInteger(handle, MwNy) > sz.height) {
MwVaApply(handle,
MwNy, sz.height,
NULL);
}
}
MwLLEndStateChange(handle->lowlevel);