Opened 12 years ago
Closed 12 years ago
#9029 closed defect (fixed)
LightboxNano wrapping - display: block
Reported by: | Josh Trutwin | Owned by: | cb1kenobi |
---|---|---|---|
Priority: | low | Milestone: | 1.4 |
Component: | Dojox | Version: | 1.3.0rc2 |
Keywords: | LightboxNano inline block | Cc: | |
Blocked By: | Blocking: |
Description
I ran into a minor issue trying to place a lightboxNano next of an image to view a blowup of choices offered - to the right of the image I wanted to display some text. So I did this:
<a href="/images/font_types.jpg" dojoType="dojox.image.LightboxNano"><img align="middle" src="/images/viewchoices_btn.gif"></a> Monogram Font
But with the code above, my image viewchoices_btn.gif has a line break after it and the Monogram Font text appears under it. Inspecting in firebug showed that the anchor tag had the style display: block added. In order to get the effect I wanted I had to do this:
<a href="/images/font_types.jpg" dojoType="dojox.image.LightboxNano" style="display:inline !important;"><img align="middle" src="/images/viewchoices_btn.gif"></a> Monogram Font
The override didn't work without !important. This seems like a strange thing to have to do considering that overriding the display:block didn't cause any appearance changes as near as I can tell.
Anyway, not sure if this is a bug, but thought I'd report it...
Josh
Change History (3)
comment:1 Changed 12 years ago by
Owner: | changed from Adam Peller to cb1kenobi |
---|
comment:2 Changed 12 years ago by
Milestone: | tbd → 1.4 |
---|
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |