Closed (fixed)
Project:
FileField
Version:
5.x-2.4
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jun 2008 at 21:27 UTC
Updated:
16 May 2009 at 20:44 UTC
Jump to comment: Most recent file
I have a file field in the middle of my form, and the following field flows around it (in firefox3b5 and firefox2.0.0.14). It displayed OK in IE7
A quick fix was to change the icon to display: "block" instead of "inline". It worked in all three with this change.
It could be any combination of my browser, theme, and particular selection of fields, but it seems this would cover all cases. Was there a reason "inline" was specified when it's already "float: left"?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | filefield-clear.patch | 551 bytes | joachim |
| filefield-css.patch | 284 bytes | michael_kirk | |
| block_vs_inline_display_filefield.png | 16.04 KB | michael_kirk |
Comments
Comment #1
jpetso commentedNo particular reason for inline from my side, I think that line was already there when I came here. I don't really see obstacles to change this if it works - just need to test this out for myself, then I can apply this patch.
It doesn't by any chance work with block instead of inline *and* float removed? Because float is what really causes the problems I believe, I just didn't have enough CSS practice to make it work without float but still using a div wrapped around the icon img. If you know how to achieve that and keep the looks, make sure to tell me.
Anyways, thanks for reporting this issue. I wonder if the number of people who are majorly annoyed by that is very large...
Comment #2
michael_kirk commentedIf you removed the float left, the icon and the text would be on different lines. The float is needed to enable the text to flow around the icon (in this case, on the same "line" as it).
Comment #3
jpetso commentedOk, I thought maybe there's some way to get the icon div on the same line even without using float. If that's not possible, that's ok too, I'll probably commit your patch as is then. (Scheduled for tomorrow.)
Comment #4
dopry commentedYou can put a clear-block class on the outer container and it should expand to contain the icon...
Comment #5
dopry commentedI believe this was fixed with a clear... reopen if not..
Comment #6
joachim commentedNot fixed in 2.4.
Here's a patch.
Comment #7
joachim commentedComment #8
quicksketchThanks joachim. Applied to the 5.x-2.x branch.
Comment #10
happyloman commentedThis is still a bug in 6.x