Select to view content in your preferred language

Reposition ZoomSlider:  sample code not working?

3143
3
04-02-2011 01:46 AM
SteveTest
Deactivated User
Hi

I'm attempting to change the location of the zoomslider following the guidelines:

http://help.arcgis.com/en/webapi/flex/help/index.html#inside_api/
(see skinning and styling navigation bar under 'inside the API')

I'm using agslib-2.2-2010-12-08.swc

However the CSS code:

<fx:Style>
    @namespace esri "http://www.esri.com/2008/ags";
    esri|Navigation
    {
        top: 30;
        right: 30;
        left: NaN;
    }
</fx:Style>


gives the warning: "CSS type selectors are not supported in components: 'com.esri.ags.components.Navigation'"

..and of course the component does not reposition.

Any suggestions on this one ?
Thanks
Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Steve,

   In which component code file are you placing the style block? Have you tried to place it in your main mxml, the one where s:Application is defined?
0 Kudos
SteveTest
Deactivated User
Excellent Robert!

Moved the style block from the mapView.mxml to the mainView.mxml and it worked perfectly..

I have other fully working style blocks in various mxml components -  so is this an ESRI thing or is there a general flex rule I'm missing here?

Thanks!
Steve
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Steve,

   I can't recall what the deal is with this, I just know you can't...
0 Kudos