Custom Widget screen doesn't resize correctly when using a RadEditor
We've created a custom widget for SF5.4 with title and content fields. The title field is a normal textbox so that's easy, but the content section needs to be a RadEditor. It's displaying, but the dialog window isn't resizing correctly. See attached screenshot.
Any ideas why this would happen?
I would hazard a guess that the RadEditor is doing some stuff in pageLoad or post pageload perhaps and the dialog doesn't know it's new size?
Try setting a timeout of like 1-2 seconds, then run this
function
resizeDesigner()
if
(dialogBase !=
null
)
dialogBase.resizeToContent();
//Refresh
Thanks for the response Steve,
Where would I put this code? I've tried putting it directly in the widget control, but raises a client side exception saying: Uncaught ReferenceError: dialogBase is not defined.
This happens even if I take out the dialogBase.resizeToContent(); expression within the if statement block.
Am I supposed to get a reference to the dialog window first somehow?
Hello,
You could use css to re-size the dialog for example using width 100% !important in a style section of the template:
<
style
type
=
"text/css"
>
....
</
style
>