<?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 How to restrict\prohibit box resizing? [updated] in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/469100#M71289</link>
    <description>&lt;P&gt;I have a window that has some Graph Builder, Filter and other elements. When I use the Filter, my Legend on Graph Builder can change size when some categories are excluded. Then the whole Graph Builder box would change size, breaking the design.&lt;/P&gt;&lt;P&gt;Question: How do I put the Graph Builder in some box and set a fixed size so no matter how it resizes inside that box, outside does not move?&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "TestTable",
	Add Rows( 2 ),
	New Column( "x", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [2, 4] ) ),
	New Column( "y", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [3, 5] ) ),
	New Column( "Cat", Character, "Nominal", Set Values( {"short", "a very long category"} ) )
);

HBox = H List Box(
	dt &amp;lt;&amp;lt; Graph Builder(
		Size( 390, 368 ),
		Show Control Panel( 0 ),
		Variables( X( :x ), Y( :y ), Overlay( :Cat ) ),
		Elements( Points( X, Y, Legend( 5 ) ) )
	), 

	filter = dt &amp;lt;&amp;lt; Data Filter(
		Mode( Show( 1 ), Include( 1 ) ),
		Add Filter(
			columns( :Cat, ),
			Display( :Cat, "Check Box Display" ), 
						
		)
	)
);

NW = New Window( "Example", &amp;lt;&amp;lt;show window( 1 ), HBox );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It creates H List with Graph Builder on the left and Data Filter on the right. If I only select "short" category in filter - Graph Builder box changes size shifting everything else.&lt;/P&gt;&lt;P&gt;I don't want that. How should I organize my Display Boxes so that anything to the right of a box that changes size does not shift?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 18:12:55 GMT</pubDate>
    <dc:creator>miguello</dc:creator>
    <dc:date>2023-06-09T18:12:55Z</dc:date>
    <item>
      <title>How to restrict\prohibit box resizing? [updated]</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/469100#M71289</link>
      <description>&lt;P&gt;I have a window that has some Graph Builder, Filter and other elements. When I use the Filter, my Legend on Graph Builder can change size when some categories are excluded. Then the whole Graph Builder box would change size, breaking the design.&lt;/P&gt;&lt;P&gt;Question: How do I put the Graph Builder in some box and set a fixed size so no matter how it resizes inside that box, outside does not move?&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "TestTable",
	Add Rows( 2 ),
	New Column( "x", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [2, 4] ) ),
	New Column( "y", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [3, 5] ) ),
	New Column( "Cat", Character, "Nominal", Set Values( {"short", "a very long category"} ) )
);

HBox = H List Box(
	dt &amp;lt;&amp;lt; Graph Builder(
		Size( 390, 368 ),
		Show Control Panel( 0 ),
		Variables( X( :x ), Y( :y ), Overlay( :Cat ) ),
		Elements( Points( X, Y, Legend( 5 ) ) )
	), 

	filter = dt &amp;lt;&amp;lt; Data Filter(
		Mode( Show( 1 ), Include( 1 ) ),
		Add Filter(
			columns( :Cat, ),
			Display( :Cat, "Check Box Display" ), 
						
		)
	)
);

NW = New Window( "Example", &amp;lt;&amp;lt;show window( 1 ), HBox );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It creates H List with Graph Builder on the left and Data Filter on the right. If I only select "short" category in filter - Graph Builder box changes size shifting everything else.&lt;/P&gt;&lt;P&gt;I don't want that. How should I organize my Display Boxes so that anything to the right of a box that changes size does not shift?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 18:12:55 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/469100#M71289</guid>
      <dc:creator>miguello</dc:creator>
      <dc:date>2023-06-09T18:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict\prohibit box resizing? [updated]</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/476785#M72131</link>
      <description>&lt;P&gt;Spacer Boxes are very handy for controlling space in a window.&amp;nbsp; Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = New Table( "TestTable",&lt;BR /&gt;Add Rows( 2 ),&lt;BR /&gt;New Column( "x", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [2, 4] ) ),&lt;BR /&gt;New Column( "y", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [3, 5] ) ),&lt;BR /&gt;New Column( "Cat", Character, "Nominal", Set Values( {"short", "a very long category"} ) )&lt;BR /&gt;);&lt;BR /&gt;&lt;BR /&gt;HBox = H List Box(
	V List Box(
		Spacer Box(size(560, 0)),
		dt &amp;lt;&amp;lt; Graph Builder(
			Size( 390, 368 ),
			Show Control Panel( 0 ),
			Variables( X( :x ), Y( :y ), Overlay( :Cat ) ),
			Elements( Points( X, Y, Legend( 5 ) ) )
		)
	), 

	filter = dt &amp;lt;&amp;lt; Data Filter(
		Mode( Show( 1 ), Include( 1 ) ),
		Add Filter(
			columns( :Cat, ),
			Display( :Cat, "Check Box Display" ), 
						
		)
	)
);

NW = New Window( "Example", &amp;lt;&amp;lt;show window( 1 ), HBox );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It creates a spacer box just above the graph builder.&amp;nbsp; If the graph builder box goes below the width of the spacer box, the Data Filter will not move.&amp;nbsp; However, if you interactively make the graph builder box bigger, you will again see the behavior you are currently experiencing.&lt;/P&gt;
&lt;P&gt;To better see what the spacer box is doing for you, try replacing it with this one:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Spacer Box(size(560, 10), Color("yellow"))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 19:27:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/476785#M72131</guid>
      <dc:creator>Jasean</dc:creator>
      <dc:date>2022-04-06T19:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict\prohibit box resizing? [updated]</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/478487#M72265</link>
      <description>&lt;P&gt;Adding a scroll box should do the trick, the scroll bars take up a little space but it should never change size regardless of the graph.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here(1);

dt = New Table( "TestTable",
	Add Rows( 2 ),
	New Column( "x", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [2, 4] ) ),
	New Column( "y", Numeric, "Continuous", Format( "Best", 6 ), Set Values( [3, 5] ) ),
	New Column( "Cat", Character, "Nominal", Set Values( {"short", "a very long category"} ) )
);

HBox = H List Box(
	Scroll Box( size(600,450), // Added this element line
		dt &amp;lt;&amp;lt; Graph Builder(
			Size( 390, 368 ),
			Show Control Panel( 0 ),
			Variables( X( :x ), Y( :y ), Overlay( :Cat ) ),
			Elements( Points( X, Y, Legend( 5 ) ) )
		)
	),

	filter = dt &amp;lt;&amp;lt; Data Filter(
		Mode( Show( 1 ), Include( 1 ) ),
		Add Filter(
			columns( :Cat, ),
			Display( :Cat, "Check Box Display" ), 
						
		)
	)
);

NW = New Window( "Example", &amp;lt;&amp;lt;show window( 1 ), HBox );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2022 21:15:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-restrict-prohibit-box-resizing-updated/m-p/478487#M72265</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2022-04-11T21:15:37Z</dc:date>
    </item>
  </channel>
</rss>

