Select to view content in your preferred language

Change default size for widget window

2320
5
Jump to solution
09-14-2016 09:27 AM
LeoLadefian5
Frequent Contributor

I'm trying to make my widget popup a little bigger to encapsulate the streetview widget.  I can't seem to find the css to modify the default window size once the widget is clicked.  This is for the jewelry box theme, the search bar widgets. Thanks!

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Leo,

   If you are talking about the onscreen widget placeholders (i.e 1,2,3 widgets) then all you have to do is add a width and or height to the main config.json for those widgets (line 6).

      {
        "position": {
          "left": 55,
          "top": 45,
          "relativeTo": "map",
          "width": 200
        },
        "placeholderIndex": 1,
        "id": "_23",
        "name": "StreetView",
        "label": "Google Street View",
        "version": "2.0.1",
        "uri": "widgets/StreetView/Widget",
        "config": "configs/StreetView/config_Google Street View.json"
      },

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Emeritus

Leo,

   So are you asking how to make the JewleryBox themes side panel widget larger?

0 Kudos
LeoLadefian5
Frequent Contributor

Sorry should have been more specific, the attachment shows a picture of the widgets I'm referring to, I'm not sure the name of that docking location.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Leo,

   If you are talking about the onscreen widget placeholders (i.e 1,2,3 widgets) then all you have to do is add a width and or height to the main config.json for those widgets (line 6).

      {
        "position": {
          "left": 55,
          "top": 45,
          "relativeTo": "map",
          "width": 200
        },
        "placeholderIndex": 1,
        "id": "_23",
        "name": "StreetView",
        "label": "Google Street View",
        "version": "2.0.1",
        "uri": "widgets/StreetView/Widget",
        "config": "configs/StreetView/config_Google Street View.json"
      },
LeoLadefian5
Frequent Contributor

Many thanks!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Leo,

 

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

0 Kudos