Select to view content in your preferred language

Change the default height of the attribute table when I open it?

730
2
Jump to solution
08-16-2018 07:50 AM
by Anonymous User
Not applicable

I would like the to make the attribute table open to a larger portion of the screen then it does normally. Can anyone advise where I can set the default height for the widget when it opens? I have been looking around in the widget.js file but can't seem to find where I can set the initial size. 

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   The height od the AT widget is set in the AT Widget.js file in the _getNormalHeight function:

_getNormalHeight: function() {
  var h = document.body.clientHeight;
  return window.appInfo.isRunInMobile ? h / 2 : h / 3;
},

Line 3: h / 3 means one third of the window height.

View solution in original post

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Andrew,

   The height od the AT widget is set in the AT Widget.js file in the _getNormalHeight function:

_getNormalHeight: function() {
  var h = document.body.clientHeight;
  return window.appInfo.isRunInMobile ? h / 2 : h / 3;
},

Line 3: h / 3 means one third of the window height.

0 Kudos
by Anonymous User
Not applicable

Thanks Robert!

0 Kudos