r3005 commited - watermark: the watermark label wraps when it's longer than the input a...

r3005 commited - watermark: the watermark label wraps when it's longer than the input a...


Revision: 3005
Author: pazu2k@gmail.com
Date: Wed Jul 29 09:04:32 2009
Log: watermark: the watermark label wraps when it's longer than the input
and looks very bad as it runs outside the input. overflow hidden fixes the
spillage and inline-block is needed so that the overflow is adhered to.
Also in most cases we don't want the copy to wrap so added nowrap.
http://code.google.com/p/jquery-ui/source/detail?r=3005
Modified:
/branches/dev/watermark/themes/base/ui.watermark.css
=======================================
--- /branches/dev/watermark/themes/base/ui.watermark.css    Tue Apr 7
07:02:56 2009
+++ /branches/dev/watermark/themes/base/ui.watermark.css    Wed Jul 29
09:04:32 2009
@@ -1,4 +1,4 @@
/* Watermark
----------------------------------*/
-.ui-watermark-container { position: relative; }
-.ui-watermark-label { position: absolute; cursor: text; }
+.ui-watermark-container { position: relative; overflow: hidden; display:
inline-block; }
+.ui-watermark-label { position: absolute; cursor: text; white-space:
nowrap; }