<?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 Panel Position in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-position/m-p/772390#M1757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to resize and move a panel at runtime. There seems to be a couple problems with the code I am using below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing only the top position works fine but using left position does nothing.&lt;/LI&gt;&lt;LI&gt;If I change height or width it works but the panel gets centered on screen.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let panel = this.getPanel();&lt;BR /&gt; let pos = panel.position;&lt;BR /&gt; pos.width = 570;&lt;BR /&gt;pos.height = map.height - 290;&lt;BR /&gt; pos.top = 180;&lt;/P&gt;&lt;P&gt;pos.left = 50;&lt;BR /&gt; panel.setPosition(pos);&lt;BR /&gt; panel.panelManager.normalizePanel(panel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Feb 2020 20:35:50 GMT</pubDate>
    <dc:creator>BrianLeroux</dc:creator>
    <dc:date>2020-02-11T20:35:50Z</dc:date>
    <item>
      <title>Panel Position</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-position/m-p/772390#M1757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to resize and move a panel at runtime. There seems to be a couple problems with the code I am using below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changing only the top position works fine but using left position does nothing.&lt;/LI&gt;&lt;LI&gt;If I change height or width it works but the panel gets centered on screen.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let panel = this.getPanel();&lt;BR /&gt; let pos = panel.position;&lt;BR /&gt; pos.width = 570;&lt;BR /&gt;pos.height = map.height - 290;&lt;BR /&gt; pos.top = 180;&lt;/P&gt;&lt;P&gt;pos.left = 50;&lt;BR /&gt; panel.setPosition(pos);&lt;BR /&gt; panel.panelManager.normalizePanel(panel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2020 20:35:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-position/m-p/772390#M1757</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2020-02-11T20:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Panel Position</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-position/m-p/772391#M1758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ended up using resize function on the panel. Works much better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let size = {&lt;BR /&gt; l: 60,&lt;BR /&gt; t: 180,&lt;BR /&gt; w: 570,&lt;BR /&gt; h: null&lt;BR /&gt; }&lt;BR /&gt; this.getPanel().resize(size);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2020 13:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/panel-position/m-p/772391#M1758</guid>
      <dc:creator>BrianLeroux</dc:creator>
      <dc:date>2020-02-12T13:40:47Z</dc:date>
    </item>
  </channel>
</rss>

