<?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: Center a Widget (Placeholder) in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114879#M3283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I have the widget appear at startup, and I want it to be placed in the center of the screen (well, actually about 45 pixels from the top but in the center (left and right).&amp;nbsp;I think if the user moves it though, then, next time it opens, it would work as is. Make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2017 23:13:10 GMT</pubDate>
    <dc:creator>KarenRobine</dc:creator>
    <dc:date>2017-02-27T23:13:10Z</dc:date>
    <item>
      <title>Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114875#M3279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to force my 'placeholder' type of widget to be centered on the map when it opens.&amp;nbsp; There's some documentation out there for creating a new panel (&lt;A href="https://developers.arcgis.com/web-appbuilder/sample-code/create-a-new-panel.htm"&gt;https://developers.arcgis.com/web-appbuilder/sample-code/create-a-new-panel.htm&lt;/A&gt;). It that the only way to get my widget centered?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:29:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114875#M3279</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-02-23T23:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114876#M3280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would look at the &lt;SPAN&gt;CSS of the&lt;/SPAN&gt;&amp;nbsp;&lt;A class="link-titled" href="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-splash.htm" title="https://doc.arcgis.com/en/web-appbuilder/create-apps/widget-splash.htm"&gt;Splash widget—Web AppBuilder for ArcGIS | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114876#M3280</guid>
      <dc:creator>RickeyFight</dc:creator>
      <dc:date>2017-02-23T23:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114877#M3281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice idea but the splash screen is essentially a modal dialog.&amp;nbsp; So you can't interact with the map. I want mine to be able to interact with the map. And also, have a close button like the placeholder widget. Thanks for the idea though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 00:02:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114877#M3281</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-02-24T00:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114878#M3282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;So are you wanting to center the on screen widget panel that appears after you click a on screen widget icon button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 15:22:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114878#M3282</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-27T15:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114879#M3283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I have the widget appear at startup, and I want it to be placed in the center of the screen (well, actually about 45 pixels from the top but in the center (left and right).&amp;nbsp;I think if the user moves it though, then, next time it opens, it would work as is. Make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2017 23:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114879#M3283</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-02-27T23:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114880#M3284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The OnScreenWidgetPanel.js&amp;nbsp;_normalizePositionObj function controls the opening position of the widgets panel. So you can make mods to the code there to center your widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2017 17:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114880#M3284</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-02-28T17:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Center a Widget (Placeholder)</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114881#M3285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect. Here's the code I ended up writing. I called this at startup if a config parameter was set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; _normalizePositionObjCenter: &lt;/SPAN&gt;&lt;STRONG style="color: #7f0055; font-size: small;"&gt;function&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;(position) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;var&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; layoutBox = &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;._getLayoutBox();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;if&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; (&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;.domNode &amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;.domNode.clientWidth) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position.left = Math.round((layoutBox.w / 2) - (&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;.domNode.clientWidth / 2));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position.top = -40;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;else&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position.left = isFinite(position.left) ? position.left : layoutBox.w - position.right;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;position.top = isFinite(position.top) ? position.top : layoutBox.h - position.bottom;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;delete&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; position.right;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;delete&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt; position.bottom;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;.position = lang.mixin(lang.clone(&lt;/SPAN&gt;&lt;STRONG style=": ; color: #7f0055; font-size: small;"&gt;this&lt;/STRONG&gt;&lt;SPAN style="font-size: small;"&gt;.position), position); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 15:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/center-a-widget-placeholder/m-p/114881#M3285</guid>
      <dc:creator>KarenRobine</dc:creator>
      <dc:date>2017-03-10T15:52:23Z</dc:date>
    </item>
  </channel>
</rss>

