Unwanted scroll bars around uploaded image attachments

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
User avatar
fagan
Registered User
Posts: 3
Joined: Thu Aug 20, 2009 12:15 am

Unwanted scroll bars around uploaded image attachments

Post by fagan » Thu Aug 20, 2009 12:24 am

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 $)

iBotPeaches
Registered User
Posts: 131
Joined: Tue Jul 24, 2007 12:38 am
Location: Vahalla
Contact:

Re: Unwanted scroll bars around uploaded image attachments

Post by iBotPeaches » Thu Aug 20, 2009 1:59 am

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.
Image

User avatar
fagan
Registered User
Posts: 3
Joined: Thu Aug 20, 2009 12:15 am

Re: Unwanted scroll bars around uploaded image attachments

Post by fagan » Thu Aug 20, 2009 9:14 am

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.

User avatar
fagan
Registered User
Posts: 3
Joined: Thu Aug 20, 2009 12:15 am

Re: Unwanted scroll bars around uploaded image attachments

Post by fagan » Fri Aug 21, 2009 11:57 am

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.

Growltiger
Registered User
Posts: 43
Joined: Sat Aug 29, 2009 5:26 pm

Re: Unwanted scroll bars around uploaded image attachments

Post by Growltiger » Tue Sep 22, 2009 5:31 pm

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.

Locked

Return to “[3.0.x] Support Forum”