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 - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -