Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a comment input box beneath my article content type that is using wysiwyg and ckeditor handle text input. The article and comment areas are about 610px wide, but for some reason, the comment text input box wants to scroll horizontally.
I tried to fix it via css, but am not able to properly identify the selectors that control the width of the content area. I am able to fix the issue using Firebug, but I can't seem to pinpoint the selectors to put into my stylesheets.
Can someone point me figure out how to keep the comment box from scrolling horizontally?
Thank you,
Joe
Comment | File | Size | Author |
---|---|---|---|
Comment-text-area.png | 22.76 KB | pkchoo |
Comments
Comment #1
TwoDWhich element gets the scrollbar and which one do you modify using Firebug to get rid of it?
Does it also happen in a default Drupal theme?
Comment #2
pkchoo CreditAttribution: pkchoo commentedSorry for the delayed reply. I missed your response.
If I select:
and change the
It works for me.
When I switch to another theme (Bartik for example), the problem with sizing does not occur, so it does look like the theme is overriding it.
Is there a way to target the css regardless?
Thank you,
Joe
Comment #3
TwoDOpps, my time to apologize! I'm very sorry I missed your response.
If you want to tweak CKEditor's minimum width, you can use hook_wysiwyg_editor_settings_alter() to override the resize_minWidth setting or perhaps the plain width setting. I think changing those to a value more suitable for your theme should fix the error.
If not, please change the issue status back to "active" so it shows up at the top of the default queue view and I'll have another look.
Comment #3.0
TwoDI am able to fix the issue using Firebug, but I can't seem to pinpoint the selectors to put into my stylesheets.