Page 1 of 1

Unwanted scroll bars around uploaded image attachments

Posted: Thu Aug 20, 2009 12:24 am
by fagan
Support Request Template
What version of phpBB are you using? phpBB 3.0.5
What is your board's URL? http://www.dkd.net/forum
Who do you host your board with? Seanic
How did you install your board? I used the download package from phpBB.com
Is your board a fresh install or a conversion? Fresh Install
Do you have any MODs installed? Yes
What MODs do you have installed? add homepage link
When did your problem begin? on first trial 19th August 2009
Please describe your problem. Images in posts included with the upload attachment feature are displayed within scroll bars even when the images are small enough to not need the scroll bars. I can find no way of eliminating the scroll bars for reasonably small images. The appearance of the post is spoiled. I'm looking at it in Firefox.

See example at http://www.dkd.net/forum/viewtopic.php?f=3&t=9
What styles do you currently have installed? prosilver
What language(s) is your board currently using? english
Which database type/version are you using? MySQL 3
What is your level of experience? New to PHP and phpBB
Generated by SRT Generator ($Rev: 3036 $)

Re: Unwanted scroll bars around uploaded image attachments

Posted: Thu Aug 20, 2009 1:59 am
by iBotPeaches
There should be a setting to control the thumbnail/image upload size in the ACP. I think you have yours set too low, which is causing those scroll bars because it doesn't want to re-size it to fit.

Re: Unwanted scroll bars around uploaded image attachments

Posted: Thu Aug 20, 2009 9:14 am
by fagan
Thanks for the thought, iBotPeaches , but I don't think I understand.

I am aware of the settings that limit image upload size, currently set to 800X600. That will display nicely without needing a thumbnail, so I have the setting "create thumbnail" set to no.

The picture surrounded by scrollbars is only 580 wide, the same width as the picture above it, which is nicely displayed without scrollbars. So re-sizing is not needed for either of these images and has not been done. I can't see why scrollbars have appeared around one but not for the other.

Re: Unwanted scroll bars around uploaded image attachments

Posted: Fri Aug 21, 2009 11:57 am
by fagan
Since my last post I have found out more. The problem seems to be caused by the prosilver style, as it does not occur when I switch to subsilver2.

Poking around inside the prosilver/theme/content.css file, I found this little gem:

.attach-image {
margin: 3px 0;
width: 100%;
max-height: 350px;
overflow: auto;

By changing the 350px to 600px (the max image size my board allows) the unwanted scrollbars were eliminated.

Hopefully this will permanently solve the problem, as there seem to be far more problems than solutions in this support forum.

Re: Unwanted scroll bars around uploaded image attachments

Posted: Tue Sep 22, 2009 5:31 pm
by Growltiger
Thank you so much for this tip. It was very annoying and now it is fixed. Let's hope someone notices this and makes it permanent.