something like:

$("ul.jmolPopupMenu ul:not(:has(ul))").css({"maxHeight":"25em",
"overflowY":"auto"})

But I don't think that is quite it.

On Fri, Sep 16, 2016 at 1:16 PM, Angel Herráez <angel.herr...@uah.es> wrote:

> I like CSS solutions; they are very clean and you do not mess up with the
> js code.
>
> > something like "menus that do not contain any menus" --- li with no
> containing ul --- I think that can be done in jQuery. Can it be done in CSS?
>
> Not actually straightforward, since you cannot apply css to parent nodes
> based on their children; the logic it's the other way around, top-down.
> So I don't see how jQuery would do it -- it would have to resort to
> checking all ul and li elements using JS before deciding.
>
> Anyway, why target terminal submenus? It's their height that brings
> trouble, not their level in hierarchy.
>
>
>
>
>
>
> ------------------------------------------------------------
> ------------------
>
> _______________________________________________
> Jmol-developers mailing list
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor of Chemistry
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to