你好。我想知道当某些显示框折叠时,如何让 Modal 窗口自动调整大小。窗口最初是这样的:

然后按“切换视图”在初始框的左侧插入一个显示框。到目前为止一切正常:

最后,再次按“切换视图”删除(折叠)我刚刚插入的显示框:

容器显示框(一个排队框,颜色为青色)已缩小到所需大小,但窗口仍保持其扩展大小。有什么想法可以解决这个问题,以便窗口缩小回来?有趣的是,只有当窗口是模态窗口时才会出现此问题。常规窗口可以很好地缩小到其原始大小。
以下是一些重现该问题的代码:
Names Default to Here(1);
optional_pb = PanelBox("Optional Stuff",
TextBox("I appear only when the button is clicked.")
);
optional_pb << Visibility(Collapse);
constant_pb = PanelBox("Constant Stuff",
TextBox("I'm always here.")
);
toggleview_bb = ButtonBox("Toggle View",
vizstatus = optional_pb << Get Visibility;
If(vizstatus == "Visible",
optional_pb << Visibility(Collapse);
,
optional_pb << Visibility(Visible);
)
);
lub = LineUpBox(NCol(3), Spacing(5),
optional_pb,
constant_pb,
toggleview_bb
);
lub << Background Color("Cyan");
win = New Window("Test Window",
<< Modal, //If I comment this out, the window behaves. Why?
lub
);我也研究过“<<重新显示”命令,但说实话我不知道它有什么用。无论如何,它似乎没什么帮助。
JMP 专业版 15.2.1
Mac 操作系统 大苏尔 11.6.4
谢谢!
它似乎是Mac的东西。对于 JMP 15 和 JMP 16,窗口在 Windows 10 下正确折叠回原始大小