<?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 Web AppBuilder Header widget and changing it's height when mobile in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337593#M8938</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to to modify the header height to shrink when it is mobile (along with changing the top margin of the SideBarController and map when the header shrinks). I start with a height of 114px and am trying to shrink it down to 40px once the screen size is 767px or smaller. I understand the HTML and CSS side but am having issues with the javascript and json since it pulls the header height from the config.json file and I am pretty new to js. I have already determined how to shrink the objects within the header (logos, nav, titles etc), but not the header height itself. If anyone has a way for this to be possible I would really appreciate it. Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 16:02:59 GMT</pubDate>
    <dc:creator>KacieBaker</dc:creator>
    <dc:date>2015-06-05T16:02:59Z</dc:date>
    <item>
      <title>Web AppBuilder Header widget and changing it's height when mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337593#M8938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to to modify the header height to shrink when it is mobile (along with changing the top margin of the SideBarController and map when the header shrinks). I start with a height of 114px and am trying to shrink it down to 40px once the screen size is 767px or smaller. I understand the HTML and CSS side but am having issues with the javascript and json since it pulls the header height from the config.json file and I am pretty new to js. I have already determined how to shrink the objects within the header (logos, nav, titles etc), but not the header height itself. If anyone has a way for this to be possible I would really appreciate it. Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 16:02:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337593#M8938</guid>
      <dc:creator>KacieBaker</dc:creator>
      <dc:date>2015-06-05T16:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder Header widget and changing it's height when mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337594#M8939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Kacie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are trying to modify the height of the Header within "Header/Widget.js", you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this.domNode.style.height = "40px";&lt;/STRONG&gt; To update the height of the header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If from another widget, this will do the same thing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var widgetManager = WidgetManager.getInstance();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var headerWidget = widgetManager.getWidgetsByName("Header")[0];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;headerWidget.domNode.style.height = "40px";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And same applies to sidebar controller as well: &lt;STRONG&gt;var sidebarController = this.widgetManager.getWidgetsByName("SidebarController");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And another way is to use CSS to update layout:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;screen size is 767px or smaller, add a new class name to the body tag such as "is-mobile". And then use CSS to override default styles:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;.is-mobile .jimu-widget-header {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 40px !important;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Note that "!important" is used here to override inline styles, which is not the best to do, but in your case this should work no problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Yiwei&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 18:56:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337594#M8939</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2015-06-08T18:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder Header widget and changing it's height when mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337595#M8940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Yiwei Ma, this solved my issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 22:06:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337595#M8940</guid>
      <dc:creator>KacieBaker</dc:creator>
      <dc:date>2015-06-10T22:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder Header widget and changing it's height when mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337596#M8941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course you will need to include the WidgetManager to do what Yiwei mentioned &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define([&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'jimu/WidgetManager'&lt;BR /&gt;],&lt;BR /&gt;function(WidgetManager) {&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;var widgetManager = WidgetManager.getInstance();&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337596#M8941</guid>
      <dc:creator>MichaelGaigg</dc:creator>
      <dc:date>2018-01-18T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Web AppBuilder Header widget and changing it's height when mobile</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337597#M8942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for pointing out &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 17:50:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/web-appbuilder-header-widget-and-changing-it-s/m-p/337597#M8942</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-01-18T17:50:22Z</dc:date>
    </item>
  </channel>
</rss>

