Closed Bug 567504 Opened 16 years ago Closed 16 years ago

I see a magnify glass for a cursor when I mouseover Jetpack widgets (single ui element)

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: erikvvold, Assigned: dietrich)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 Build Identifier: 0.4 RC 1 When I mouse over a Jetpack widget, I have a magnifying glass for a cursor, then when I click the element the onClick is fired and the content of the element is zoomed in on, then if I press the element again, onClick is fired and it zooms in closer, then finally the cursor doesn't change on mouseover but the content is all gone or not visible at least. Reproducible: Always Steps to Reproduce: See details Actual Results: content of widget element is not viewable after a point, and the cursor is a magnifying glass at points Expected Results: the content shouldn't zoom in when the widget element is clicked, and the cursor should be a finger pointing at the content perhaps?
Version: unspecified → Trunk
I'm seeing this too. I guess it's Firefox's default image handling. As a workaround you can specify an img element and it seems to work as expected. widgets.add(widgets.Widget({ label: "Widget with changing image on mouseover", content: "<img src=http://www.yahoo.com/favicon.ico>", onMouseover: function(e) { e.target.src = "http://www.bing.com/favicon.ico"; }, onMouseout: function(e) { e.target.src = "http://www.yahoo.com/favicon.ico"; }, onClick: function(e) { console.log("click"); } }));
"As a workaround you can specify an img element and it seems to work as expected." This worked, thanks. I guess I can change the cursor myself as well.. but the way I'm thinking of is to add mouseOver and mouseOut event handlers. Maybe the cursor could be changed by default when 'image' is used instead of 'content'?
how about if the widget is defined with the image property, we wrap the content in the <img> tag internally?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Depends on: 567505
OS: Mac OS X → All
Hardware: x86 → All
Attached patch v1 — — Splinter Review
- for widgets that use the image property, build the content. this gives us control, instead of the default formatting of a raw image, which adds the zoom functionality. this fix depends on the patch in bug 567505 in order to have images properly fill the whole widget box.
Assignee: nobody → dietrich
Status: NEW → ASSIGNED
Attachment #447021 - Flags: review?(myk)
Attachment #447021 - Flags: review?(myk) → review+
Comment on attachment 447021 [details] [diff] [review] v1 Nit: it would be good to also update the two examples in the docs that load images to use |image| instead of |content|.
a=myk as well for 0.4.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product. To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: