[Building Sakai] Urgent help: How to change the height pixels between two tools
Steve Swinsburg
steve.swinsburg at gmail.com
Fri Oct 14 18:32:17 PDT 2011
Hi,
Do you mean you want to change the height of the tool iframe itself, or do you want to change the amount of space that is between two tools that are in the same column on the page?
See screenshot. This shows two tools on the page, one on top of one another. I have highlighted both the header and body sections of each tool. You'll see there isn't any space between two tools in the same column. you could add some via CSS in portal.css (look for #col1, #col1of2 and col2of2).
Since tools are rendered in an iframe, most(all) tools call a javascript function to resize the parent iframe, which is in headscripts.js as you found, although some tools do this internally without using headscripts.
cheers,
Steve
On 14/10/2011, at 7:31 PM, David Wafula wrote:
>
>
> 2011/10/14 <swwangl at tsmc.com>
> Dear AllI use JQuery to control iframe dimensions like:
>
>
> <script type="text/javascript">
> $(document).ready(function(){
> var heightDiv = jQuery("iframe",top.document).contents().find('body').attr('scrollHeight');
> $("iframe",top.document).css({height:heightDiv});
> });
> </script>
>
> Put this in the page header.
>
> Regards.
>
> I found the height is controlled by
> <iframe xxxx class=portletMainIframe xxx style="height: ?? px"> xxxx
>
> But the style="height: ??px" seems like written by java program, not controlled by css files.
>
> Could anyone give me help to solve this issue??
>
>
> ----- Forwarded by SWWANGL(Joan Wang 王琇緯)/TWN on 10/14/2011 11:46 AM -----
>
>
>
> Dear All
> Can anyone know how to change the height between two tools?
> I have two tools, one is at top, another is at bottom..
>
> But we want to change the interval height pixals..
>
> Anyone has solution??
>
> Joan
>
> TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you.
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>
>
>
> --
> David Wafula
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20111015/4bb47967/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen Shot 2011-10-15 at 12.29.00 PM.png
Type: image/png
Size: 45102 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20111015/4bb47967/attachment.png
More information about the sakai-dev
mailing list