Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#404 closed defect (fixed)

xinha does not correctly inherit initial textarea size when given by row/col

Reported by: gogo Owned by: akaEdge
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description

markwu writes:

In htmlarea 3.0 I can use the row="20" to control the hight of textarea, but this seems not wowks with xinha.

http://xinha.gogo.co.nz/punbb/viewtopic.php?pid=2041#p2041

Change History (2)

comment:1 Changed 14 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in changeset:278

comment:2 Changed 14 years ago by Kim Steinhaug

For reference if there are more places in the source which should have a "px" added to it, here are the places to loog for :

Searching for: offsetWidth
htmlarea.js(98): w: textarea.style.width ? textarea.style.width : textarea.offsetWidth,
htmlarea.js(1421): width = this._toolBar.offsetWidth;
htmlarea.js(1484): this._htmlArea.style.width = this._htmlArea.offsetWidth + parseInt(this.config.panel_dimensions.right);
htmlarea.js(1490): this._htmlArea.style.width = this._htmlArea.offsetWidth + parseInt(this.config.panel_dimensions.left);
htmlarea.js(1524): width  = this._htmlArea.offsetWidth;
htmlarea.js(1655): this.notifyOf('resize', {width:this._htmlArea.offsetWidth, height:this._htmlArea.offsetHeight});
inline-dialog.js(14): this.rootElem.style.width  = this.width  =  this.editor._framework.ed_cell.offsetWidth;
inline-dialog.js(68): dialog.rootElem.style.width  = dialog.width  =  dialog.editor._framework.ed_cell.offsetWidth;
popupdiv.js(80): var w = popup.offsetWidth;
popupdiv.js(85): ew = el.offsetWidth;
popupdiv.js(129): s.width = (this.content.offsetWidth + addX) + "px";
popupdiv.js(242): var EX2 = el.offsetWidth + EX1;
popupdiv.js(263): var CX2 = cc.offsetWidth + CX1;
popupwin.js(119): var w = self.content.offsetWidth + 4;
popupwin.js(128): // s.width = el.offsetWidth + "px";
popupwin.js(131): s.left = (w - el.offsetWidth) / 2 + "px";
plugins\ContextMenu\context-menu.js(420): var dx = x + div.offsetWidth - window.innerWidth + 4;
plugins\ContextMenu\context-menu.js(433): var w = div.offsetWidth;
plugins\SpellChecker\spell-check-ui.js(273): var ws = { x: frame.offsetWidth - 4,
popups\about.html(83): CONTENT_WIDTH_DIFF = window.innerWidth - content.offsetWidth;
popups\about.html(86): CONTENT_WIDTH_DIFF = document.body.offsetWidth - 400;
popups\about.html(114): //content.style.width = (document.body.offsetWidth - CONTENT_WIDTH_DIFF) + "px";
popups\color_picker.js(289): this.table.style.left = (left - (this.table.offsetWidth - element.offsetWidth)) + 'px';
popups\popup.js(65): window.innerWidth = body.offsetWidth + 5;
popups\popup.js(73): // window.dialogWidth = body.offsetWidth + "px";
popups\popup.js(74): window.resizeTo(body.offsetWidth, body_height);
popups\popup.js(77): window.resizeBy(body.offsetWidth - cw, body_height - ch);
popups\popup.js(78): var W = body.offsetWidth;
Found 28 occurrence(s) in 9 file(s)
Note: See TracTickets for help on using tickets.