Wednesday, March 21, 2012

Web Part PartChromeType.None Causes Zone_ToggleDropCues Function Problem

Using the Atlas March CTP, I receive an error using it's webpart stuff.

It is in "function Zone_ToggleDropCues(show, index, ignoreOutline)"

this.initialize = function() {
Sys.UI.Controls.WebParts.WebPart.callBaseMethod(this, "initialize");

_titleElement.detachEvent("onmousedown", WebPart_OnMouseDown);
this.element.detachEvent("ondragstart", WebPart_OnDragStart);
this.element.detachEvent("ondrag", WebPart_OnDrag);
this.element.detachEvent("ondragend", WebPart_OnDragEnd);

if (_zone.get_webPartManager().get_allowPageDesign() && _zone.get_allowLayoutChange()) {
_titleElement.attachEvent("onmousedown", Function.createDelegate(this, mouseDownHandler));
}
}


"_titleElement.detachEvent("onmousedown", WebPart_OnMouseDown);"
says that _titleElement is null.

This happens when I set the chrometype to none for the webpart.

Nathan

We should be handling the case where _titleElement is null. I've filed a bug and this should be fixed in the next release of Atlas. Thanks for reporting it.

-Mike

No comments:

Post a Comment