You need to be logged in to post in the forums. If you do not have an account, please sign up first.
15. January 2010, 14:00:15
How to prevent widget from moving on click+dragSo how do I make widget NOT move when i click and drag it?
15. January 2010, 14:10:19
By using control regions in CSS:
-apple-dashboard-region:dashboard--region(control rectangle 0px 0px 0px 0px);
The pixels are "padding" on the element where there are no control-regions.
Hans S. Tømmerholt
15. January 2010, 14:23:31
OMG! How on earth could i guess this?
This doesn't look like standard css.
Is this property inherited? I've tried to set it to <html> and on an innermost <div>, but it doesn't seem to work.
15. January 2010, 14:30:30
I've found the mistake, there must be one dash in dashboard-region, like this:
-apple-dashboard-region:dashboard-region(control rectangle 0px 0px 0px 0px);
But the question remains, what on earth is -apple-dashboard-region? Where can I read about it? Google keeps silence.
15. January 2010, 15:21:55
Sorry for the mis-quote.
There is no standard CSS for this. The - prefix in itself means it's proprietary/for testing.
It's a feature of Apple Dashboard widgets. Back in the day when Opera Widgets were created, one aimed to be as compatible with that ecosystem. This also explans "preferenceForKey()" rather than "getPreference()".
Hans S. Tømmerholt
27. January 2010, 06:45:06
Is this property inherited?
It is not inherited. But it does "shine through" any child/sibliing elements over it, so even if you have an element positioned absolutely over another element with this property, it does not block the "undraggable" property.
27. January 2010, 11:40:34
Ok, another question.
How do i make an <object> not draggable? For if i set the property to an object element (or its parents), the object still can move the whole widget.