r1495 - in branches/bxe_2_0: css js
[email protected] Sun, 4 Jun 2006 11:18:52 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Sun Jun 4 11:18:51 2006
New Revision: 1495
Modified:
branches/bxe_2_0/css/editor.css
branches/bxe_2_0/js/widget.js
Log:
fix textarea height
Modified: branches/bxe_2_0/css/editor.css
==============================================================================
--- branches/bxe_2_0/css/editor.css (original)
+++ branches/bxe_2_0/css/editor.css Sun Jun 4 11:18:51 2006
@@ -225,19 +225,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 input.attributeSelector {
@@ -339,10 +348,12 @@
[__bxe_highlight=true] {
- background-color: #FEB676;
+ background-color: #FEB676 ! important;
+
}
+
.a {
color: #0000ee;
}
Modified: branches/bxe_2_0/js/widget.js
==============================================================================
--- branches/bxe_2_0/js/widget.js (original)
+++ branches/bxe_2_0/js/widget.js Sun Jun 4 11:18:51 2006
@@ -942,8 +942,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