Is there a CSS property which acts like android XML "wrap content"? -


in particular have gwt project

  1. textarea element want conform set width , expand as needed bottom.
  2. listbox element want conform set width , expand vertically show entirety of displayed list item.

those 2 widgets using replaced elements: <textarea> , <select> respectively.

  1. for textarea, there's no way make "resize automatically" other listening events , computing new size (there's no need compute new size, can let browser it; see http://phaistonian.pblogs.gr/expanding-textareas-the-easy-and-clean-way.html)
  2. for listbox, it's impossible have items' text wrap. see word wrap options in select list similar question in pure js.

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -