Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Drop down list to long for screen.

  1. #1
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default Drop down list to long for screen.

    I was advised by a DD member that viewing my site on his laptop a group list or two was a touch long thus him not being able to see a few of the options as they were off his screen.
    His words " Impossible to reach the end of the list by scrolling down without using the mouse wheel, because then the sub items disappear"

    Here is my site http://www.theremotedoctor.co.uk/index.html

    These two groups need attention.
    Accessories has 18 fields.
    Keys & Remotes has 16 fields.

    I have asked the member to supply a screen shot showing the cut off point & whether size of laptop screen or screen resolution would have any impact on this.
    Just waiting for a reply now.

    So the question is,What do you recommend to overcome this issue.

    Not sure how to explain but did not want to say have a list then a fly out list from a certain point etc.
    I mean first list say A-M then at the bottom a fly out list N-Z
    The reason being if i need to add something new in the A-M list then the bottom field of this list would then need to be moved to the top of the second list.
    This is very possible that i will do this & would mean plenty of work in the future so i need to keep it simple but effective.

    Thanks very much.
    Last edited by theremotedr; 05-24-2015 at 11:43 PM.

  2. #2
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I posted a screen shot and some comment a couple of hours ago, but my reply apparently vanished in thin air for some reason.
    Anyhow, the problem wouldn't exist if you forced the list of subitems to disappear onclick, not onmouseout. That would allow you to scroll to the bottom of the lists without 'loosing' them.

  3. #3
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi,

    Thanks for that.
    I a bit new to all this and its my first attempt.
    Can you advise the code i need to change and advise what i change it to.

    I can then take it from there.

  4. #4
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    The other thing you can do is check with javascript the offset top of the object then add it to the height of the object. Check the height of the body. If the added object is longer than the body height then do a function.
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  5. #5
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Wow,
    Thats way over my head.

  6. #6
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Apparently you're using jquery tooltipster for your menu. If that's the case, see if this can help you.
    You should try to first understand how your own scripts actually work, otherwise it's difficult to help you to modify them.

  7. #7
    Join Date
    Mar 2010
    Location
    Florida
    Posts
    512
    Thanks
    9
    Thanked 61 Times in 59 Posts

    Default

    Ill see if i can make a script for you.
    -DW [Deadweight]
    Resolving your thread: First Post: => EDIT => Lower right: => GO ADVANCED => Top Advance Editor drop down: => PREFIX:Resolved

  8. The Following User Says Thank You to Deadweight For This Useful Post:

    theremotedr (05-24-2015)

  9. #8
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Thanks very much for your help.
    If you need me to send any files etc just ask.

  10. #9
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there theremotedr,


    try adding this CSS...

    Code:
    
    #menu-main-navigation ul a {
        padding:2px 10px;
     }
    ...which would reduce the height of "Accessories" and " Keys & Remotes" by 288 and 256 pixels respectively.

    cootheaed
    ~ the original bald headed old fart ~

  11. The Following User Says Thank You to coothead For This Useful Post:

    theremotedr (05-24-2015)

  12. #10
    Join Date
    Nov 2011
    Location
    Cider Region
    Posts
    1,132
    Thanks
    158
    Thanked 3 Times in 3 Posts

    Default

    Hi

    Thats a quick & easy way.
    Is the 10px negotiable ?
    Is there a limit i can go up to just to make the fields a touch deeper but to stay within the screen issue.

Similar Threads

  1. DHTML Window long <select> drop-down problem in FF
    By mitch42 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 02-22-2008, 10:05 PM
  2. Refreshing a drop-down list/select list
    By bbrant in forum JavaScript
    Replies: 1
    Last Post: 02-06-2007, 08:13 AM
  3. Page Name Lenght, How long is too long
    By Timra in forum Other
    Replies: 2
    Last Post: 12-10-2006, 12:12 AM
  4. creating a long list
    By the-disturbed in forum HTML
    Replies: 5
    Last Post: 10-23-2006, 10:34 PM
  5. AnyLink Drop Down Menu - drops up not down with long list
    By lukemcd in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 05-04-2005, 09:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •