开发者

Dojox FloatingPane is growing every time I update the content

开发者 https://www.devze.com 2023-04-08 04:26 出处:网络
I\'ve created a simple mapping widget using Doj开发者_JAVA百科o and Google Maps. The map is displayed in a dijit.layout.ContentPane set as the center panel of a dijit.layout.BorderContainer (which has

I've created a simple mapping widget using Doj开发者_JAVA百科o and Google Maps. The map is displayed in a dijit.layout.ContentPane set as the center panel of a dijit.layout.BorderContainer (which has the address field and a BusyButton in its top panel); the BorderContainer is in turn wrapped in a dojox.layout.FloatingPane. The widget has a subscription to a topic that will trigger a refresh of the map display when new address data is provided. The updater function is very simple, and looks like this:

_updateAddress: function(data) {
    this.addressMapper.show();

    if (data === null || !data.address || data.address === "" ) {
        this.address.attr("value", "");
    } else {
        this.address.attr("value", data.address);
    }

    this.mapBtn.makeBusy();
    this._getMap();
}

Every time I call this function, the FloatingPane's resize() method is invoked when I call show(), and it's increasing the height and width of the BorderContainer by 12 pixels every time the pane is shown (even with doLayout and isLayoutContainer set to false on the FloatingPane). I can't seem to prevent this from happening, or correct it afterwards, no matter what I try.

Anyone have any ideas how to remedy this?

Thanks in advance!

-- Joe M --

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号