Hi,
You need to override the sizeAndPositionContainer container
in ProgressiveDisclosureContainer . That is in
com.adobe.rtc.controls. This will help in solving the position
problem
Here is the updated FUnction
/**
* @private
*/
public function
sizeAndPositionContainer(p_evt:Event=null):void
{
var topStyle:Number = (getStyle("top")==undefined) ? -1 :
getStyle("top");
var bottomStyle:Number = (getStyle("bottom")==undefined) ?
-1 : getStyle("bottom");
var leftStyle:Number = (getStyle("left")==undefined) ? -1 :
getStyle("left");
var rightStyle:Number = (getStyle("right")==undefined) ? -1
: getStyle("right");
var originalPt:Point = new Point();
_subContainer.cacheAsBitmap = false;
if (topStyle!=-1) {
originalPt.y = topStyle;
if (bottomStyle!=-1) {
// need to stretch
_subContainer.height = target.height - topStyle -
bottomStyle;
}
} else if (bottomStyle!=-1) {
// TODO : nigel : normalize height against owner
originalPt.y = target.y + target.height -
_subContainer.height - bottomStyle;
} else {
originalPt.y = target.y + (target.height -
_subContainer.height)/2;
}
if (leftStyle!=-1) {
originalPt.x = leftStyle;
if (rightStyle!=-1) {
// need to stretch
_subContainer.width = target.width - leftStyle - rightStyle;
}
} else if (rightStyle!=-1) {
// TODO : nigel : normalize width against owner
originalPt.x = target.x + target.width - _subContainer.width
- rightStyle;
} else {
//originalPt.x = target.x + (target.width -
_subContainer.width)/2;
originalPt.x = target.x ;
}
var ownerPt:Point = target.parent.localToGlobal(originalPt);
var _subContainerPt:Point =
_subContainer.parent.globalToLocal(ownerPt);
_subContainer.move(originalPt.x, _subContainerPt.y);
if (bitmapOverlay) {
// bitmapOverlay.x = _subContainerPt.x;
// bitmapOverlay.y = _subContainerPt.y;
}
}
And you need to also override the HideToolBar function, that
will fix the RTE. Here is the updated function
/**
* @private
*/
protected function hideToolBar():void
{
if (!_model.isSynchronized) {
return; //just in case
}
//focusEnabled = false;
if(focusManager)
{
if ( focusManager.getFocus() != null &&
contains(DisplayObject(focusManager.getFocus())) ) {
setFocus();
}
}
if (_editorToolBar &&_editorToolBarTimer &&
_editorToolBarTimer.running == true) {
_editorToolBarTimer.reset();
_editorToolBarTimer.stop();
}
if (_toolbarContainer) {
_toolbarContainer.undisclose();
}
_iAmEditing = false;
if(_model.getUserRole(_userManager.myUserID) <
UserRoles.PUBLISHER) {
return;
}
//setUpFromModel(); //catch up with everyone else
//remove updateScrollPosition when hiding the toolbar,
//so we don't always drag scroll bar to the bottom
if (_noteUndoRedo) {
_noteUndoRedo.startingText = _model.htmlText;
}
updateEditorTextFromModel();
//updateScrollPositionFromModel();
onEditingListUpdate();
}
I will say if you are linking to the source path in project
properties , just make these changes in the actual Note and
ProgressiveDisclosureConatainer itself and you should be fine.
Hope this helps.
Thanks
Hironmay Basu