<?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: Panel default size in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834771#M8666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean that you want to resize the widget panel during start up so that you are using the default theme, but want different size widgets, then I think you need to go through PanelManager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;require(["jimu/PanelManager","dojo/dom-style"], function(PanelManager, domStyle) { &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;var pm = PanelManager.getPanelById("__id__Panel");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;domStyle.set(pm,"width",100);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;}); something like that.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; background-color: #fafafa;"&gt;Very vague documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; background-color: #fafafa;"&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/panelmanager.htm" title="https://developers.arcgis.com/web-appbuilder/api-reference/panelmanager.htm"&gt;PanelManager class—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Apr 2015 22:07:22 GMT</pubDate>
    <dc:creator>PrevinWong1</dc:creator>
    <dc:date>2015-04-22T22:07:22Z</dc:date>
    <item>
      <title>Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834765#M8660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I configure the default size of a Panel?&lt;/P&gt;&lt;P&gt;I want to start a widget within a small panel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 08:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834765#M8660</guid>
      <dc:creator>eduAED</dc:creator>
      <dc:date>2015-04-21T08:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834766#M8661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/115273"&gt;edu AED&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To change the default panel size you just need to adjust the values in the main config.json file. In there you will see values for height and width. This will allow you to adjust the size of the panel individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:36:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834766#M8661</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-04-21T13:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834767#M8662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to configure it on the widget itself by default. I tried to configure it on the manifest.json file, but it is not working.&lt;/P&gt;&lt;P&gt;Is there any other way to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:46:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834767#M8662</guid>
      <dc:creator>eduAED</dc:creator>
      <dc:date>2015-04-21T13:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834768#M8663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was referencing the main config.json file in server\apps\##\config.json not in the widget folder.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "position": {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "left": 55,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "top": 45,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "width": 400, //change this value
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "height": 410 &lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;//change this value&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:07:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834768#M8663</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2021-12-12T10:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834769#M8664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I know. But then it must be configured for each application.&lt;/P&gt;&lt;P&gt;My question is if it can be configured in the widget itself by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 06:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834769#M8664</guid>
      <dc:creator>eduAED</dc:creator>
      <dc:date>2015-04-22T06:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834770#M8665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/115273" target="_blank"&gt;edu AED&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to set it as the default for all new apps created then you would need to set it in the stemapp layout theme. For example for the foldable theme you need to edit the config here: arcgis-web-appbuilder-1.1\client\stemapp\themes\FoldableTheme\layouts\default\config.json This will make that widget spot that size no matter what widget you load into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, if you change the height to 800 and width to 600 of the widget space in that file and you reload your theme into your web app then every time you add a widget in that space (no matter the widget) you will get the panel to be that size. Here you are starting to create a custom theme.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to adjust the width of the side panel then you would need to go into \arcgis-web-appbuilder-1.1\client\stemapp\themes\FoldableTheme\panels\FoldablePanel\Panel.js and modify this chunck of code and change the value from 360 to whatever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; function getPanelWidth() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var layoutBox = html.getMarginBox(jimuConfig.layoutId);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (layoutBox.w &amp;lt;= criticality) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return '100%';
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 360;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834770#M8665</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2021-12-12T10:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834771#M8666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you mean that you want to resize the widget panel during start up so that you are using the default theme, but want different size widgets, then I think you need to go through PanelManager.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;require(["jimu/PanelManager","dojo/dom-style"], function(PanelManager, domStyle) { &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;var pm = PanelManager.getPanelById("__id__Panel");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;domStyle.set(pm,"width",100);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;}); something like that.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; background-color: #fafafa;"&gt;Very vague documentation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace; background-color: #fafafa;"&gt;&lt;A href="https://developers.arcgis.com/web-appbuilder/api-reference/panelmanager.htm" title="https://developers.arcgis.com/web-appbuilder/api-reference/panelmanager.htm"&gt;PanelManager class—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 22:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834771#M8666</guid>
      <dc:creator>PrevinWong1</dc:creator>
      <dc:date>2015-04-22T22:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834772#M8667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/137503"&gt;Previn Wong&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not tried that but it might be interesting to look into.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Stan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 23:00:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834772#M8667</guid>
      <dc:creator>StanMcShinsky</dc:creator>
      <dc:date>2015-04-22T23:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834773#M8668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Previn!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryed what you said but it is not working for me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What works for me was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="background-color: #fafafa; color: #4d4d4d; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, 'Courier New', Courier, monospace;"&gt;var pm = PanelManager.getPanelById("__id__Panel");&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;pm&lt;/SPAN&gt;.&lt;SPAN style="color: #7a7a43;"&gt;resize&lt;/SPAN&gt;({&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;w&lt;/SPAN&gt;:&lt;SPAN style="color: #0000ff;"&gt;100&lt;/SPAN&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2015 07:00:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834773#M8668</guid>
      <dc:creator>eduAED</dc:creator>
      <dc:date>2015-05-13T07:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834774#M8669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can a resize be done on the current open panel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2015 20:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834774#M8669</guid>
      <dc:creator>denverweston</dc:creator>
      <dc:date>2015-07-13T20:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834775#M8670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First one must get the instance of the PanelManager. What worked for me was&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var pm = PanelManager.getInstance().getPanelById(this.id + '_panel');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pm.resize({h:720});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 22:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/834775#M8670</guid>
      <dc:creator>MichaelGaigg</dc:creator>
      <dc:date>2015-09-22T22:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/1124910#M14662</link>
      <description>&lt;P&gt;Thanks for the example. This works for me except on initial load of the widget. Tried it in postCreate, startup, onOpen... based on the lifecycle of a widget docs, onOpen is the last to be called so currently have it there. Opening the first time the widget size does not resize but after closing and reopening then the resize does work each time thereafter.&lt;/P&gt;&lt;P&gt;It seems to be a timing issue because if I put a breakpoint on this line then let it continue, it works on initial load too. Also, if I add a&amp;nbsp;setTimeout for like 1 second it works.&amp;nbsp; Anyone know if there is an event to subscribe to for whatever else needs to happen first?&lt;/P&gt;&lt;P&gt;BTW, I am doing this in a Portal 10.8.1 web app custom widget, not stand alone WAB.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 17:27:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/1124910#M14662</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2021-12-10T17:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Panel default size</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/1227668#M14830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3137"&gt;@RyanCoodey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is an old thread but I ran into the same issue and found a solution on this page &lt;A href="https://support.esri.com/en/technical-article/000025937" target="_blank" rel="noopener"&gt;https://support.esri.com/en/technical-article/000025937&lt;/A&gt; .&amp;nbsp; I was missing....&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;      panel.setPosition(panel.position);        
      panel.panelManager.normalizePanel(panel);   &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The full code of what worked for me is:&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;var pm = PanelManager.getInstance();
var panelID = pm.activePanel.id;
var activePanel = pm.getPanelById(panelID);
activePanel.position.width = 669;
activePanel.setPosition(activePanel.position);
activePanel.panelManager.normalizePanel(activePanel);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 20:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-default-size/m-p/1227668#M14830</guid>
      <dc:creator>B-L</dc:creator>
      <dc:date>2022-11-01T20:41:35Z</dc:date>
    </item>
  </channel>
</rss>

