PDA

View Full Version : Attachment window too wide


TerryMason
07-18-2012, 03:50 PM
When adding an attachment to my forum, the popup window is sized wrong. I end up with horizontal scroll bars (the window itself is properly sized, but the content is not).

This does not happen with the default vbulletin skin, only my custom one.

I'm running vbulletin 4.1.11

139900

TerryMason
07-19-2012, 12:55 PM
Well, I was finally able to fix this myself, the developers who made my theme don't seem to provide any support :mad:

The problem is that the coders set a minimum width for the body tag. This caused the body of all windows to be set to whatever the minimum was.

I fixed this by adding the following to additional.css:


#attachmentpopup {
width:auto;
min-width:100px;
max-width:{vb:stylevar doc_maxWidth};
margin: 0;
}


Then I modified the newattachment template

change

<body onload="self.focus()">

to

<body id="attachmentpopup" onload="self.focus()">

tini_lam
08-26-2014, 10:40 AM
thanks so much :)