Select to view content in your preferred language

Setting initial position on a widget

2914
5
Jump to solution
04-15-2016 06:45 AM
deleted-user-0W0-oLHxDjCX
Deactivated User

Hello,

I’m trying to change default position of the Layerlist widget, but until now I didn’t have much progress. 
    - I tried set left value position into config.json;

    {             "uri":"widgets/LayerList/Widget",             "version":"1.4",             "id":"widgets_LayerList_Widget_17",             "name":"LayerList",             "label":"Lista de Camadas",             "index":3,             "config":"configs/LayerList/config_Lista de Camadas.json",             "openAtStart": true,             "position":{                "left":68               }          }
  • I Tried to modify in PanelManager and WidgetManager:

    if(pid === 'widgets_LayerList_Widget_17_panel'){                   options.position.left=68;                   console.log(options);                   console.log(this.widgetManager);                 }

    I just had a little progress setting in css “left:68!important”, but with this I lose a mobily of the widget as was to be expected, but I didn’t want this. 😞

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Ezequias,

  What theme are you using?

0 Kudos
deleted-user-0W0-oLHxDjCX
Deactivated User

LaunchpadTheme.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Sure I have answered this before, here:

Layer List auto start location change

0 Kudos
deleted-user-0W0-oLHxDjCX
Deactivated User

Thanks a lot Robert Scheitlin, GISP it works perfectly.

Best regards

Zeke

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Zeke,

Don't forget to mark this as answered by clicking on the "correct answer" link on the reply that answered your question.

0 Kudos