Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
theme system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2007 at 10:21 UTC
Updated:
2 Jan 2008 at 10:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
dvessel commentedThis also happens on Safari.
I suspect it's due to the text area and gripping being wrapped in a span tag which is really bad form.
Comment #2
dvessel commentedOkay, it's not due to the span. It's because a property was changed.
display: block; used to be in Drupal 5 and was removed.
Still that span has gotta go.
Comment #3
gábor hojtsyThat display: block used to cause other issues AFAIR. You can look up the CVS blame logs to find out the exact issue.
Comment #4
profix898 commenteddvessel is right, adding 'display:block;' to 'html.js .resizable-textarea textarea' solves the problem.
see http://cvs.drupal.org/viewcvs/drupal/drupal/modules/system/system.css?r1...
Comment #5
gábor hojtsyYes, but it introduces a problem which looks worse: I'd rather see a few pixels space then a scrollbar. Read this: http://drupal.org/node/146462#comment-254921 (and the notes before). If you have a fix which does not exhibit any of the two problems, then show us please! It would be very welcome.
Comment #6
dvessel commentedHoly shit! What a messy queue.
Looks like the only issue for removing the block property is that it breaks teaser.js by displaying the teaser field when it shouldn't be doing so. --node edit form
The odd thing is that the textarea is always calculated as "display:block". Done by the script I guess but can't find where it's doing that. Must be jQuery itself.
Somehow, having the block display property is preventing the span tag from being hidden. The span is the parent wrapper so it shouldn't know about the css style of it's children. In this case being the textarea..
I'm confused.
Comment #7
dvessel commentedOkay, never mind what I just said. I think this should fix it.
Setting "display: block" caused this bit here to inherit the display property.
All I did was change ":hidden" to "[@disabled]" which looks at its setting. Also added the block property to style.css.
And that span tag is fine I guess. Was generated with jQuery.
Please review.
Comment #8
dvessel commentedWhoops, forgot system.css.
Comment #9
dvessel commentedLet me just clarify that "disabled" is form attribute and [@disabled] just checks for its existence.
The code in teaser.js toggles it on and off when hitting the split button.
When the form is initially loaded, it has the disabled attribute in place if it was never split. Inversely, it doesn't exist when it is split. So, just checking if it's there works since the inherited visibility check is run only when it's loaded. Could be more verbose with [@disabled=disabled] but it doesn't look like it is needed.
Comment #10
dvessel commentedThis patch also fixes another issue with Opera where resizable log field ends up getting hidden.
http://drupal.org/node/164698
Comment #11
dvessel commentedMarking this as critical due to the issue with Opera which breaks functionality.
Comment #12
dvessel commentedGábor Hojtsy, That scroll bar issue while animating collapsable fieldsets has nothing to do with display: block. Not on the Mac side at least. I've run into that in other situations and there doesn't seem to be any workarounds.
I saw a bigger issue so I forgot to mention that.
Comment #13
dvessel commentedhttp://drupal.org/node/146462#comment-251029
That's what http://drupal.org/node/146462#comment-254921 was referring to. It's an issue with FireFox. Easily reproducible on the Mac with no known workarounds. display: block does not cause it.
Might be different on the Windows or Linux. Would be great if someone took a closer look.
Comment #14
dvessel commentedI just tested this in IE6. Works there too.
Tested so far:
Safari 2
Opera 9.20/9.22
FireFox 2 win/mac
IE6
Comment #15
dvessel commentedUhm, maybe this'll grab more attention.
Comment #16
dmitrig01 commentedComment #17
litwol commentedshameless bump. this is rather important and must not be ignored. needs to be committed
Comment #18
dvessel commentedhunk offset fixed.
Comment #19
gábor hojtsyThanks, committed!
Comment #20
(not verified) commentedComment #21
gábor hojtsyHm, as reported by Lynn, this broke the display of #disabled and #resizable textareas (which are hidden due to this JS change). I am thinking about rolling back this patch, although it fixes two bugs at once, since it does introduce a critical bug with "information" textareas disappearing. Maybe someone can hop over to http://drupal.org/node/204756 and help us find a different solution there instead of rolling this back?