Select to view content in your preferred language

Attribute widget initial position change in WAB 2.1

1566
1
09-07-2016 04:24 PM
ChadRicks
Regular Contributor

In WAB 1.2 in the attribute table widget.js file i can adjust the default size of the attribute table by changing 

setInitialPosition: function() {
var h, b;
if (this.position.height) {
h = this.position.height;
} else {
h = document.body.clientHeight;
h = h / 5;
}

In WAB 2.1 it is different and i'm not sure what to change to make the default size smaller.

Thanks 

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

Chad,

   Now that calculation is in this function:

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