<?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 The Ever-Expanding Buttons (controlling button box width) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46653#M26582</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I have a weird problem in JMP 12.2.&amp;nbsp; When I run the code below, successive switching between the tabs using the button on the first tab yields button boxes that grow in width.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test",
	tbb = tab box(
		"First",
		vlistbox(
			text box("Not much here"),
			button box("Go to Second", tbb &amp;lt;&amp;lt; set selected(2)),
		),
		"Second",
		tb = tablebox(
			scb = string col box("AAA", {"Hello", "World", "Fubar", "Festival"}),
			cb = col box("Actions",
				b1 = button box(""),
				t2 = text box(""),
				t3 = text box(""),
				b4 = button box(""),
			),
		),
	),
);

tb &amp;lt;&amp;lt; set underline headings(1) &amp;lt;&amp;lt; set column borders(1) &amp;lt;&amp;lt; set row borders(1) &amp;lt;&amp;lt; set shade alternate rows(1);

b1 &amp;lt;&amp;lt; set icon("ControlC");
b4 &amp;lt;&amp;lt; set icon("WinFilePrintPreview");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's what it looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExpandingButtons.png" style="width: 717px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8186i37EF635CA370D8C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExpandingButtons.png" alt="ExpandingButtons.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To see the effect, run the code and click on the "Go to Second" button.&amp;nbsp; This will switch to the "Second" tab.&amp;nbsp; Now click on the "First" tab and click the "Go to Second" button again.&amp;nbsp; Keep doing this and you'll see what I'm talking about.&lt;/P&gt;
&lt;P&gt;Is there a way to force a button to be a particular width?&amp;nbsp; I tried putting a button inside a border box and setting the width of the border box, but that didn't work.&amp;nbsp; BTW this behavior is not evident in JMP 13.2.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 19:23:24 GMT</pubDate>
    <dc:creator>pmroz</dc:creator>
    <dc:date>2017-11-01T19:23:24Z</dc:date>
    <item>
      <title>The Ever-Expanding Buttons (controlling button box width)</title>
      <link>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46653#M26582</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I have a weird problem in JMP 12.2.&amp;nbsp; When I run the code below, successive switching between the tabs using the button on the first tab yields button boxes that grow in width.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;nw = new window("Test",
	tbb = tab box(
		"First",
		vlistbox(
			text box("Not much here"),
			button box("Go to Second", tbb &amp;lt;&amp;lt; set selected(2)),
		),
		"Second",
		tb = tablebox(
			scb = string col box("AAA", {"Hello", "World", "Fubar", "Festival"}),
			cb = col box("Actions",
				b1 = button box(""),
				t2 = text box(""),
				t3 = text box(""),
				b4 = button box(""),
			),
		),
	),
);

tb &amp;lt;&amp;lt; set underline headings(1) &amp;lt;&amp;lt; set column borders(1) &amp;lt;&amp;lt; set row borders(1) &amp;lt;&amp;lt; set shade alternate rows(1);

b1 &amp;lt;&amp;lt; set icon("ControlC");
b4 &amp;lt;&amp;lt; set icon("WinFilePrintPreview");
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's what it looks like:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExpandingButtons.png" style="width: 717px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/8186i37EF635CA370D8C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExpandingButtons.png" alt="ExpandingButtons.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;To see the effect, run the code and click on the "Go to Second" button.&amp;nbsp; This will switch to the "Second" tab.&amp;nbsp; Now click on the "First" tab and click the "Go to Second" button again.&amp;nbsp; Keep doing this and you'll see what I'm talking about.&lt;/P&gt;
&lt;P&gt;Is there a way to force a button to be a particular width?&amp;nbsp; I tried putting a button inside a border box and setting the width of the border box, but that didn't work.&amp;nbsp; BTW this behavior is not evident in JMP 13.2.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 19:23:24 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46653#M26582</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-11-01T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: The Ever-Expanding Buttons (controlling button box width)</title>
      <link>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46657#M26583</link>
      <description>&lt;P&gt;Found a fix:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;b1 &amp;lt;&amp;lt; set max size(30, 50);
b4 &amp;lt;&amp;lt; set max size(30, 50);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This seems to do the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 20:16:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46657#M26583</guid>
      <dc:creator>pmroz</dc:creator>
      <dc:date>2017-11-01T20:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: The Ever-Expanding Buttons (controlling button box width)</title>
      <link>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46704#M26612</link>
      <description>&lt;P&gt;Looks like this issue was fixed in JMP 13.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 16:57:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/The-Ever-Expanding-Buttons-controlling-button-box-width/m-p/46704#M26612</guid>
      <dc:creator>Craige_Hales</dc:creator>
      <dc:date>2017-11-02T16:57:59Z</dc:date>
    </item>
  </channel>
</rss>

