HTML Scroll Bar Issue
Gurney Halleck
11-11-2006, 07:31 PM
Does anyone know what causes the double scroll bar in HTML side of the select-a-team GUI, or better yet, how to fix it? I'm guessing text length is causing the problem.
Cheers.
Ca-Chicken-Soup
11-11-2006, 09:17 PM
Yeah it's the text length no doubt. But the official ones don't do they? Yeah I'm not sure sorry. But I'm curious as to why your VGUI scroll bars are not the purple checker boards, mine have that problem and it's annoying..
Just checking, that is a HTML map description and not a .txt one right?
Gurney Halleck
11-12-2006, 06:54 AM
C'Soup- yeah its purple. Don't know why in didn't come out in the screen shot. I'm probably going back to the text version until it get resolved.
Hintzmann
11-13-2006, 02:49 AM
I have fixed this issue for the next release of dod_ludendorff, where we will create a short Mission Briefing at the top and a longer history-section under that.
The problem happens, as Soup said, when the page is too long.
So, I simply sets the height of the html and body elements to 100%, with an overflow hidden.
And then created 2 extra div elements. One for the scrollbar with overflow set to auto, and another one for a little bit of padding.
You can see a in-game screenshot here:
http://files.langal.dk/maps/dod_ludendorff/resource/maphtml/MissionBrief.jpg
And have a look at the work i progress html-page here.
http://files.langal.dk/maps/dod_ludendorff/resource/maphtml/dod_ludendorff_b409_english.html
Feel free to copy what ever you want, and if you need help creating the HTML-page, then please feel free to ask.
Ca-Chicken-Soup
11-13-2006, 03:29 AM
Hah lol that went right over my head. But good job finding a fix, and cool historical setting for your map :D
Gurney Halleck
11-13-2006, 04:59 AM
Yea - nice work! And I do like the CSS imbedded in the HTML itself. Since it only going to be one page, it doesn't really make sense to make a separate CSS file - and its one less thing to keep track of when distributing the map.
Day of Defeat Forum Archive created by
Neil Jedrzejewski.
This in an partial archive of the old Day of Defeat forums orignally hosted by
Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.