Topic
No replies
SystemAdmin
SystemAdmin
181 Posts
ACCEPTED ANSWER

Pinned topic Iframe height, how to change

‏2009-05-29T09:28:19Z |
Hi,

I have a question on the generated code by Widget Factory.

If I open the following link (it's not accessible from the outside of my intranet)
http://abaco-mashup:9080/widgets/GoogleMapAziende/webengine/factory/widget/Dispatcher?_widgetID=AziendeModel

I can see the iWidget XML descriptor for my widget generated with Widget Factory.
Here you are:

<iw:iwidget name="AziendeModel" iScope="com.ibm.lwf.WidgetContext" supportedModes="view edit" mode="view">
<iw:resource uri="http://abaco-mashup:9080/widgets/GoogleMapAziende/factory/clientjavascript/widget/handler.js"/>

<iw:content mode="view">

<iframe id="_IWID_frame_view" name="_IWID_frame_view"
class="rootFrame" frameborder="0"
style="width:100%;min-width:60px; min-height:200px;border:0px;">
</iframe>

<form id="_IWID_loadform_view" name="_IWID_loadform_view" method="POST"
action="http://abaco-mashup:9080/widgets/GoogleMapAziende/webengine/factory/widget/Dispatcher/Action!load"
target="_IWID_frame_view"
style="display:none">
<input type="hidden" name="id" value="IWID">
<input type="hidden" name="model" value="AziendeModel">
<input type="hidden" name="mode" value="view">
<input type="hidden" name="proxyURL">
</form>
</iw:content>

<iw:content mode="edit">

<iframe id="_IWID_frame_edit" name="_IWID_frame_edit"
class="rootFrame" frameborder="0"
style="width:100%;min-width:60px; min-height:200px;border:0px;">
</iframe>

<form id="_IWID_loadform_edit" name="_IWID_loadform_edit" method="POST"
action="http://abaco-mashup:9080/widgets/GoogleMapAziende/webengine/factory/widget/Dispatcher/Action!load"
target="_IWID_frame_edit"
style="display:none">
<input type="hidden" name="id" value="IWID">
<input type="hidden" name="model" value="AziendeModel">
<input type="hidden" name="mode" value="edit">
<input type="hidden" name="proxyURL">
</form>
</iw:content>

<iw:itemSet name="attributes">
<iw:item name="ParametriWidgetAziendeps:tempo" value="" lang="en"/>
<iw:item name="ParametriWidgetAziendeps:GoogleMapKey" value="" lang="en"/>
<iw:item name="ParametriWidgetAziendeps:Elementi" value="" lang="en"/>
<iw:item name="ParametriWidgetAziendeps:icone" value="" lang="en"/>
<iw:item name="ParametriWidgetAziendeps:tipoLabel" value="" lang="en"/>
<iw:item name="ParametriWidgetAziendeps:ColoreSfondo" value="" lang="en"/>
<iw:item name="ParametriWidgetAziendeps:ColoreTesto" value="" lang="en"/>
</iw:itemSet>
</iw:iwidget>

As you can see in the <iw:content mode="view"> element, the iframe has the attribute "min-height:200px".
I want to change this value.
How can I do this?
Which files can I modify to have this result?
Is there another way to avoid the fixed dimension of the iframe with Widget Factory, maybe with css applied on a specific element of the contained page or any setting parameter in the builders?

Thanks for help