r1494 - in trunk: css js
[email protected] Sun, 4 Jun 2006 11:18:09 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Sun Jun 4 11:18:07 2006
New Revision: 1494
Modified:
trunk/css/editor.css
trunk/js/widget.js
Log:
fix textarea height
Modified: trunk/css/editor.css
==============================================================================
--- trunk/css/editor.css (original)
+++ trunk/css/editor.css Sun Jun 4 11:18:07 2006
@@ -219,19 +219,28 @@
.ModalBox .ModalBoxPane {
- padding-left: 10px;
- padding-right: 2px;
+ padding-left: 10px;
+ padding-right: 2px;
+
}
-.ModalBox .ModalBoxPane input, .ModalBoxPane select {
+
+
+.ModalBox .ModalBoxPane input, .ModalBoxPane select, .ModalBoxPane textarea {
border: dotted black 1px;
width: 300px;
}
+.ModalBoxPane textarea {
+ width: 400px;
+}
+
+
.ModalBox .ModalBoxPane input[type="submit"] , .ModalBoxPane input[type="reset"], .AboutBox input[type="submit"] {
border: dotted black 1px;
width: 50px;
margin-right: 10px;
+ margin-bottom: 10px;
}
.ModalBox .ModalBoxPane td {
Modified: trunk/js/widget.js
==============================================================================
--- trunk/js/widget.js (original)
+++ trunk/js/widget.js Sun Jun 4 11:18:07 2006
@@ -889,8 +889,11 @@
case "textarea":
var td = this.addFormEntry(name, description);
var inputfield = document.createElement("textarea");
- inputfield.setAttribute("cols","50");
- inputfield.setAttribute("rows","30");
+ //inputfield.setAttribute("cols","50");
+ //inputfield.setAttribute("rows","30");
+ var _height = window.innerHeight - 150;
+ if (_height > 450) { _height = 450;};
+ inputfield.style.height = _height + "px";
var text = document.createTextNode(value);
inputfield.name = name;
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs