<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I get a Modal window to resize automatically? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/475240#M71985</link>
    <description>&lt;P&gt;Thanks for reporting this issue. I can confirm this is a Mac-only behavior that we have been able to address in a future release. JMP 17 will be available in the fall of 2022.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Apr 2022 15:55:08 GMT</pubDate>
    <dc:creator>Audrey_Shull</dc:creator>
    <dc:date>2022-04-01T15:55:08Z</dc:date>
    <item>
      <title>How can I get a Modal window to resize automatically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/464389#M70896</link>
      <description>&lt;P&gt;Hi. &amp;nbsp;I'd like to know how I can get a Modal window to resize automatically when some of its display boxes are collapsed. &amp;nbsp;Here's the window initially:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikles_1-1645807738831.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40322iF32E52CEEBD047DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikles_1-1645807738831.png" alt="nikles_1-1645807738831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then after pressing "Toggle View" to insert a display box to the left of the initial box. &amp;nbsp;All is well so far:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikles_2-1645807791495.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40323iA228377045FD8174/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikles_2-1645807791495.png" alt="nikles_2-1645807791495.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And finally after pressing "Toggle View" again to remove (Collapse) the display box I just inserted:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nikles_3-1645807839296.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/40324iE53D7CCE68787CB9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nikles_3-1645807839296.png" alt="nikles_3-1645807839296.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The container display box (a line up box, colored in cyan) has shrunk back down to the desired size, but the window still remains at its expanded size. &amp;nbsp;Any ideas on how I can fix this so that the window shrinks back down? &amp;nbsp;Interestingly, this problem occurs only if the window is modal. &amp;nbsp;Regular windows shrink back to their original size just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's some code that reproduces the issue:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here(1);

optional_pb = PanelBox("Optional Stuff",
	TextBox("I appear only when the button is clicked.")
);
optional_pb &amp;lt;&amp;lt; Visibility(Collapse);

constant_pb = PanelBox("Constant Stuff",
	TextBox("I'm always here.")
);

toggleview_bb = ButtonBox("Toggle View",
	vizstatus = optional_pb &amp;lt;&amp;lt; Get Visibility;
	If(vizstatus == "Visible",
		optional_pb &amp;lt;&amp;lt; Visibility(Collapse);
	,
		optional_pb &amp;lt;&amp;lt; Visibility(Visible);
	)
);

lub = LineUpBox(NCol(3), Spacing(5),
	optional_pb,
	constant_pb,
	toggleview_bb
);
lub &amp;lt;&amp;lt; Background Color("Cyan");

win = New Window("Test Window",
	&amp;lt;&amp;lt; Modal,						//If I comment this out, the window behaves.  Why?
	lub
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've also looked into the " &amp;lt;&amp;lt; Reshow" command, but honestly I have no clue what it does. &amp;nbsp;Does not appear to help, at any rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JMP Pro 15.2.1&lt;/P&gt;&lt;P&gt;Mac OS Big Sur 11.6.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:11:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/464389#M70896</guid>
      <dc:creator>nikles</dc:creator>
      <dc:date>2023-06-09T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a Modal window to resize automatically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/464399#M70897</link>
      <description>&lt;P&gt;It appears to be a Mac thing.&amp;nbsp; The window properly collapses back down to the original size under Windows 10, for both JMP 15 and JMP 16&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 17:18:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/464399#M70897</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-02-25T17:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get a Modal window to resize automatically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/475240#M71985</link>
      <description>&lt;P&gt;Thanks for reporting this issue. I can confirm this is a Mac-only behavior that we have been able to address in a future release. JMP 17 will be available in the fall of 2022.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 15:55:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-can-I-get-a-Modal-window-to-resize-automatically/m-p/475240#M71985</guid>
      <dc:creator>Audrey_Shull</dc:creator>
      <dc:date>2022-04-01T15:55:08Z</dc:date>
    </item>
  </channel>
</rss>

