14

Spill to the right on a scroll bar and the next panel, using GWT

 3 years ago
source link: https://www.codesd.com/item/spill-to-the-right-on-a-scroll-bar-and-the-next-panel-using-gwt.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Spill to the right on a scroll bar and the next panel, using GWT

advertisements

I have a GWT application that has a left-hand scrollable navigation panel with a directory tree. I would like to be able to keep the panel narrow with a scroll bar at the bottom (which I have) but show the entire file name on hover, overflowing over the vertical scrollbar and into the next panel. I could do it by overlaying a small div with the full name when hovering, but that seems klugey and prone to subtle visual errors. I've tried fiddling with visibility, wrap and z-index with no effect. Can I do this by just adjusting the CSS parameters of the item in question, or on some other not-so-klugey way?

IntelliJ does this in the right way, but they're not in a browser:

bKVHM.png

Thanks, -Lars


I think you'll have to go with an overlay. If the labels are inside a div then that div will control the overflow, and there's no way to specify different overflow values for different children.

You could copy all of the styles from your label onto your new overlay div at runtime to avoid having to duplicate all your styling. I'd probably give up on having the outline box only around the overflow (around "esponse" in your example picture). That seems hard.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK