Rob sent me a revised version of his widget and I realized that part
of the workaround when specifying the dashboard region is that the
width (or height for a horizontal scrollbar) must be specified. The
whole problem with absolutely-positioned elements to begin with is
that their widths and heights are not expanded when they have
absolutely-positioned elements inside, thus causing the problem with
AppleSlider.js.
So in full, the changes Rob needed to make to the original widget
sent to the list was the addition of this CSS:
Rob
On Nov 29, 2005, at 4:42 PM, Julian Missig wrote:
On 29 Nov 2005, at 16:28, Rob Crawford wrote:
I have been writing a widget which need 3 sliders, I have tried
to use the sliders in the AppleSlider.js and I get them to work
inside Safari and Widgetarium but in Dashboard they seem to
have problems. The thumb will not drag you can click on the
track to change the value of the slider but not the thumb. I am
new to Java Script and I have found samples of other sliders
but I would like to use the ones that Apple provides. Has
anyone used the AppleSliders with success? If so is there a
widget out there that uses them that I can look at.
It looks like there may be an issue with AppleSlider when the
element it is given is absolutely-positioned. In this case the
element AppleSlider creates which has the Dashboard region set
on it is not sized properly, which means the slider is not
marked as being a control.
The easiest workaround is to just set -apple-dashboard-region:
dashboard-region(control rectangle); on the element you want to
use (or from JavaScript style.appleDashboardRegion = "dashboard-
region(control rectangle)"; ). The other workaround is to use
relatively-positioned elements.
This may also affect AppleScrollbar.
Julian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Dashboard-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/dashboard-dev/email@hidden