infoWindow set height

571
4
Jump to solution
10-30-2018 07:10 AM
LukasWingert
New Contributor II

Is there a way to set the height of a infoWindow? I tried with infoWindow.resize(width, height) but only the width of the infoWindow is changing. Any ideas?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Lukas,

   The height property of the resize method has this note:

The new height of the InfoWindow in pixels. This value is set to be the maximum allowable height, if the content doesn't fit within the specified height a vertical scroll bar is displayed.

Meaning that the height is controlled by the content of the popup not to exceed the height set.

View solution in original post

4 Replies
RobertScheitlin__GISP
MVP Emeritus

Lukas,

  1. What version of WAB?
  2. What theme are you using?
  3. Where in the code are you placing the infoWindow.resize?
0 Kudos
LukasWingert
New Contributor II

1. 2.9

2. PlateauTheme

3. i am working on a custom widget that is listening on a onClick event on the map. After that an infoWindow appears with custom informations. All of that works fine, also setting the width with window.resize but the height doesnt change

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Lukas,

   The height property of the resize method has this note:

The new height of the InfoWindow in pixels. This value is set to be the maximum allowable height, if the content doesn't fit within the specified height a vertical scroll bar is displayed.

Meaning that the height is controlled by the content of the popup not to exceed the height set.

RobertScheitlin__GISP
MVP Emeritus

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

0 Kudos