Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Development

Scroll Bar works but is hidden

Author Message
wapdgn



Joined: 25 May 2008
Posts: 1

Posted: Sun May 25, 2008 - 5:45 pm    Post subject: Scroll Bar works but is hidden Reply with quote

Hello,

I have been trying to do it by myself for a lot and a lot of hours but I didn't manage to show THIS scroll bar.

I simply drag a scroll area from the library to my canevas in dashcode.

Then i built a long long html table to be able to scroll.

I will be very happy if anybody know what i missed....

Thank you very much.

I include below my simple code.

I changed load function like this :


Code:
function load()
{
    setupParts();
   myContent=document.getElementById("content");
   html="<table>";
   var i;
   for (i=0;i<30;i++) html+="<tr><td>"+i+"</td></tr>";
   html +="</table>";
   myContent.innerHTML=html;
   refreshScrollArea()
}


And i added this function :

Code:
function refreshScrollArea()
{
    var contentarea = document.getElementById("scrollArea");
    if (contentarea) contentarea.object.refresh();
}


For remembering, dashcode create these div elements when i drag a scroll area to my canevas :


Code:
<div apple-part="com.apple.Dashcode.part.scrollarea" class="apple-scrollarea" id="scrollArea" apple-group="scrollArea">
   

    <div id="content" class="content" apple-group="scrollArea" style="position: absolute; left: 0px; top: 0px; right: 22px; bottom: 0px; overflow-x: hidden; overflow-y: hidden; "></div>
    </div>

View user's profile Send private message Send e-mail AIM Address Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group