I'm developing a simple web app for a handheld internet device. The screen is 3.5" wide so I have to use large fonts for the user to actually see something. I'm simply trying to use a standard ddl with about 15 items in the list. If I leave the font size at default, it fits on the screen just fine. If I go with a large font, the list runs off the screen with no scrollbar and the user cannot get to those items.
This device uses the Mozilla engine and does not seem to account for larger font sizes affecting the height of the list. FFox has the exact same behavior on my laptop - 21 items in the list is the magic number to get a scrollbar. IE7 handles everything correctly.
At this point, it seems my options are
1) go with the default font size (unreadable on the device)
2) report this issue to bugzilla
3) create some type of fake ddl with a listbox and a graphic
Main Topics
Browse All Topics





by: ThogekPosted on 2008-02-11 at 12:04:26ID: 20869699
I don't think that there's anything you can do from your server-side ASPX code, nor the client-side HTML or CSS, to control how many items an HTML drop-down can contain before displaying a scrollbar. It's an aspect of the client Web browser, and I believe a constant for each browser.
What exactly are you trying to do? Induce a drop-down's scrollbar, or...?