<?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 Project ignoring H Splitter Box Set Sizes . . . sometimes in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Project-ignoring-H-Splitter-Box-Set-Sizes-sometimes/m-p/744546#M92427</link>
    <description>&lt;P&gt;I'm working with a JMP 17 Project and have a script to import a CSV file, embed a script into the Data Table, and execute the embedded script. The embedded script creates a graph from the data and sets the Project layout. All of these pieces, executed individually, work as intended. The problem I am having is that when I execute the combined script, the outer H Splitter Box ignores &amp;lt;&amp;lt;Set Sizes and collapses the left pane (Workspace, Contents, etc.) into a very small space that needs to be manually resized. To make matters worse, this doesn't happen all the time. It happens 100% of the time when the project is empty (which is how it will be used most of the time), but if a data table is already open, it happens . . . somewhere between always and never, and seems to be random.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Wait() and executing the graph/layout script with Include(), neither make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug, or am I doing something wrong? I've found that the same thing happens if I set the layout using a Project on Open Script under Project Settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the full code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt	=	Open(

			path = Pick File(
				"Select a file",
				"",										
				{ "CSV or TXT|csv;txt" },	
				1,										
				0,										
				"",										
			),

			Import Settings(
				Labels( 1 ),
				Column Names Start( 13 ),
				Data Starts( 14 ),
			),
		);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

dt	&amp;lt;&amp;lt;	New Script(
	"Graph",

	Names Default to Here( 1 );

	pj	=	This Project();
	dt	=	Current Data Table();
	dt	&amp;lt;&amp;lt;	Set Window ID("Table1");

	gb	=	dt
		&amp;lt;&amp;lt;	Graph Builder(
				Show Control Panel( 0 ),
				Show Legend( 0 ),
				Lock Scales( 1 ),
				Fit to Window( "On" ),
				Variables( X( :Ex ), Y( :Why )
				),
				Elements( Points( X, Y )
				),

				SendToReport(
					Dispatch( {}, "Ex", Scalebox, {Min(0), Max(2)}
					),

					Dispatch( {}, "Why", Scalebox, {Min(0), Max(2.25)}
					),

				),

		);
	gb	&amp;lt;&amp;lt;	Set Window ID("Graph1");

	img	=	New Image( "jmpprj://contents/Assets/Bins.png" );
	frm	=	(gb &amp;lt;&amp;lt; report)[FrameBox( 1 )]
		&amp;lt;&amp;lt;	Add Image(
				image( img ),
				Lock( 1 ),
				Bounds(
					Left( 0 ),
					Right( 2 ),
					Top( 2.25 ),
					Bottom( 0 ),
				),
		);
	pj	&amp;lt;&amp;lt;	Set Layout(
		H Splitter Box(
			&amp;lt;&amp;lt;Set Sizes({0.1, 0.9}),
			V Splitter Box(
				&amp;lt;&amp;lt;Set Sizes({0.33, 0.33, 0.33}),
				Tab Page Box(Window ID("Workspace")
				),
				Tab Page Box(Window ID("Contents")
				),
				Tab Page Box(Window ID("Recent Files")
				)
			),
			H Splitter Box(
				&amp;lt;&amp;lt;Set Sizes({0.5, 0.5}),
					Tab Page Box(Window ID( "Graph1" )),
				Tab Box(
					Tab Page Box(Window ID( "Table1" ))
				)
			)
		)
	)
);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

dt	&amp;lt;&amp;lt;	Run Script( "Graph" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 13:32:53 GMT</pubDate>
    <dc:creator>ionatx</dc:creator>
    <dc:date>2024-04-05T13:32:53Z</dc:date>
    <item>
      <title>Project ignoring H Splitter Box Set Sizes . . . sometimes</title>
      <link>https://community.jmp.com/t5/Discussions/Project-ignoring-H-Splitter-Box-Set-Sizes-sometimes/m-p/744546#M92427</link>
      <description>&lt;P&gt;I'm working with a JMP 17 Project and have a script to import a CSV file, embed a script into the Data Table, and execute the embedded script. The embedded script creates a graph from the data and sets the Project layout. All of these pieces, executed individually, work as intended. The problem I am having is that when I execute the combined script, the outer H Splitter Box ignores &amp;lt;&amp;lt;Set Sizes and collapses the left pane (Workspace, Contents, etc.) into a very small space that needs to be manually resized. To make matters worse, this doesn't happen all the time. It happens 100% of the time when the project is empty (which is how it will be used most of the time), but if a data table is already open, it happens . . . somewhere between always and never, and seems to be random.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Wait() and executing the graph/layout script with Include(), neither make any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this a bug, or am I doing something wrong? I've found that the same thing happens if I set the layout using a Project on Open Script under Project Settings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the full code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dt	=	Open(

			path = Pick File(
				"Select a file",
				"",										
				{ "CSV or TXT|csv;txt" },	
				1,										
				0,										
				"",										
			),

			Import Settings(
				Labels( 1 ),
				Column Names Start( 13 ),
				Data Starts( 14 ),
			),
		);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

dt	&amp;lt;&amp;lt;	New Script(
	"Graph",

	Names Default to Here( 1 );

	pj	=	This Project();
	dt	=	Current Data Table();
	dt	&amp;lt;&amp;lt;	Set Window ID("Table1");

	gb	=	dt
		&amp;lt;&amp;lt;	Graph Builder(
				Show Control Panel( 0 ),
				Show Legend( 0 ),
				Lock Scales( 1 ),
				Fit to Window( "On" ),
				Variables( X( :Ex ), Y( :Why )
				),
				Elements( Points( X, Y )
				),

				SendToReport(
					Dispatch( {}, "Ex", Scalebox, {Min(0), Max(2)}
					),

					Dispatch( {}, "Why", Scalebox, {Min(0), Max(2.25)}
					),

				),

		);
	gb	&amp;lt;&amp;lt;	Set Window ID("Graph1");

	img	=	New Image( "jmpprj://contents/Assets/Bins.png" );
	frm	=	(gb &amp;lt;&amp;lt; report)[FrameBox( 1 )]
		&amp;lt;&amp;lt;	Add Image(
				image( img ),
				Lock( 1 ),
				Bounds(
					Left( 0 ),
					Right( 2 ),
					Top( 2.25 ),
					Bottom( 0 ),
				),
		);
	pj	&amp;lt;&amp;lt;	Set Layout(
		H Splitter Box(
			&amp;lt;&amp;lt;Set Sizes({0.1, 0.9}),
			V Splitter Box(
				&amp;lt;&amp;lt;Set Sizes({0.33, 0.33, 0.33}),
				Tab Page Box(Window ID("Workspace")
				),
				Tab Page Box(Window ID("Contents")
				),
				Tab Page Box(Window ID("Recent Files")
				)
			),
			H Splitter Box(
				&amp;lt;&amp;lt;Set Sizes({0.5, 0.5}),
					Tab Page Box(Window ID( "Graph1" )),
				Tab Box(
					Tab Page Box(Window ID( "Table1" ))
				)
			)
		)
	)
);

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

dt	&amp;lt;&amp;lt;	Run Script( "Graph" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 13:32:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Project-ignoring-H-Splitter-Box-Set-Sizes-sometimes/m-p/744546#M92427</guid>
      <dc:creator>ionatx</dc:creator>
      <dc:date>2024-04-05T13:32:53Z</dc:date>
    </item>
  </channel>
</rss>

