Select to view content in your preferred language

Banner width

2238
17
03-21-2011 10:44 AM
CindyKamigaki
Emerging Contributor
I'd like to widen the banner in Flex Viewer and cannot find reference to banners in the codes provided in the flexviewer folder. I've found reference to banner.mxml within the ArcGIS forums, but that seems to apply to API for Flex.  Any clarity would be greatly appreciated.
Tags (2)
0 Kudos
17 Replies
RobertScheitlin__GISP
MVP Emeritus
Cindy,

    I am a little confused... If you are talking about the header/banner in the Flex Viewer than it automatically covers 100% of the web browsers window width. Are you talking about height or the old SFV...?
0 Kudos
CindyKamigaki
Emerging Contributor
Sorry, Let me clarify.  I'm inquirying about the color band where the title, subtitle, logo and widget tray are located.
0 Kudos
KeithBornhorst
Deactivated User
You'll want to take a look at the HeaderControllerWidget.mxml file in the /src/widgets/HeaderController/ directory. Specifically, the contents of "headerGroup"

<s:Group id="headerGroup"
        width="100%" height="85">
   <!-- basic structure is an hbox with
        logoIcon: a logo (if specified)
        titleGroup: the title on top of the subtitle
        widgetBox: icons for all widgets specified in main configuration file
        linkBox: "link buttons" for all links specified in main configuration file
    -->
<mx:HBox id="headerContent"
...


That should get you started.

Cheers,
K
0 Kudos
CindyKamigaki
Emerging Contributor
Thanks for pointing me in the right direction.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Cindy,

   So as I mentioned earlier it is set to 100% in the Flex Viewer 2.2, so what are you after.
0 Kudos
CindyKamigaki
Emerging Contributor
Robert,

I mistyped and should have stated height.  Our logo is very detailed and I thought I could make the title banner height longer and enlarge our logo.  Currently, it just looks like a blob.  I'm new to code writing and should  probably invest in a book.  Can you suggest one?
0 Kudos
AndrewHargreaves
Deactivated User
Hi,
is there any way to edit this just through the HeaderControl.xml? I want to replace the default banner with one of our own....however, i'm only working with the compiled flexviewer and can't edit the mxml....

thanks
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrew,

   No the height is hard coded and not configurable.
0 Kudos
charlessaenz
Emerging Contributor
Andrew,

   No the height is hard coded and not configurable.


So you're saying that you can't edit the default banner like you were able to in ArcGIS Server Manager? If that's so that is such a bummer, so we would have to just stick with editing the style of the application?
0 Kudos