Changeset 272
- Timestamp:
- 07/19/05 02:14:04 (8 years ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
htmlarea.js (modified) (6 diffs)
-
inline-dialog.js (modified) (2 diffs)
-
plugins/Linker/linker.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r268 r272 1253 1253 1254 1254 'sb_row' :document.createElement('tr'), 1255 'sb_cell' :document.createElement('td'), // status bar 1256 1257 'left' :document.createElement('col'), 1258 'middle' :document.createElement('col'), 1259 'right' :document.createElement('col') 1255 'sb_cell' :document.createElement('td') // status bar 1256 1260 1257 } 1261 1258 … … 1295 1292 fw.tbody.appendChild(fw.bp_row); // Bottom panel 1296 1293 fw.tbody.appendChild(fw.sb_row); // Statusbar 1297 1298 // cols in the table1299 fw.table.appendChild(fw.left);1300 fw.table.appendChild(fw.middle);1301 fw.table.appendChild(fw.right);1302 1294 1303 1295 // and body in the table … … 1466 1458 this._iframe.style.height = '100%'; 1467 1459 this._textArea.style.height = '100%'; 1468 this._iframe.style.width = '100%'; 1469 this._textArea.style.width = '100%'; 1470 this._framework.ed_cell.style.width = ''; 1460 this._iframe.style.width = ''; 1461 this._textArea.style.width = ''; 1471 1462 1472 1463 if(includingBars != null) this._htmlArea.sizeIncludesToolbars = includingBars; … … 1535 1526 if(panels[pan].on && panels[pan].panels.length && HTMLArea.hasDisplayedChildren(panels[pan].container)) 1536 1527 { 1528 panels[pan].container.style.display = ''; 1537 1529 return true; 1538 1530 } … … 1541 1533 else 1542 1534 { 1543 HTMLArea.removeFromParent(panels[pan].container); 1544 if(typeof editor._framework[pan] != 'undefined') 1545 { 1546 HTMLArea.removeFromParent(editor._framework[pan]); 1547 } 1535 panels[pan].container.style.display='none'; 1548 1536 return false; 1549 1537 } … … 1552 1540 if(panel_is_alive('left')) 1553 1541 { 1542 col_span += 1; 1543 } 1544 1545 if(panel_is_alive('top')) 1546 { 1547 // NOP 1548 } 1549 1550 if(panel_is_alive('right')) 1551 { 1554 1552 col_span += 1; 1555 if(!HTMLArea.hasParentNode(panels.left.container))1556 {1557 this._framework.ler_row.insertBefore(panels.left.container,this._framework.ed_cell);1558 this._framework.table.insertBefore(this._framework.left,this._framework.middle);1559 this._framework.left.style.width = this.config.panel_dimensions.left;1560 }1561 }1562 1563 if(panel_is_alive('top'))1564 {1565 if(!HTMLArea.hasParentNode(panels.top.container))1566 {1567 this._framework.tp_row.appendChild(panels.top.container);1568 }1569 }1570 1571 if(panel_is_alive('right'))1572 {1573 col_span += 1;1574 if(!HTMLArea.hasParentNode(panels.right.container))1575 {1576 this._framework.ler_row.insertBefore(panels.right.container, this._framework.ed_cell.nextSibling);1577 this._framework.table.insertBefore(this._framework.right,this._framework.middle.nextSibling);1578 this._framework.right.style.width = this.config.panel_dimensions.right;1579 }1580 1553 } 1581 1554 1582 1555 if(panel_is_alive('bottom')) 1583 1556 { 1584 if(!HTMLArea.hasParentNode(panels.bottom.container)) 1585 { 1586 this._framework.bp_row.appendChild(panels.bottom.container); 1587 } 1557 // NOP 1588 1558 } 1589 1559 -
trunk/inline-dialog.js
r177 r272 12 12 this.rootElem.style.display = 'none'; 13 13 this.editor._framework.ed_cell.insertBefore(this.rootElem, this.editor._framework.ed_cell.firstChild); 14 this.rootElem.style.width = this.width = this.editor._framework.ed_cell.offsetWidth ;15 this.rootElem.style.height = this.height = this.editor._framework.ed_cell.offsetHeight ;14 this.rootElem.style.width = this.width = this.editor._framework.ed_cell.offsetWidth + 'px'; 15 this.rootElem.style.height = this.height = this.editor._framework.ed_cell.offsetHeight + 'px'; 16 16 17 17 var dialog = this; … … 66 66 function(e, args) 67 67 { 68 dialog.rootElem.style.width = dialog.width = dialog.editor._framework.ed_cell.offsetWidth ;69 dialog.rootElem.style.height = dialog.height = dialog.editor._framework.ed_cell.offsetHeight ;68 dialog.rootElem.style.width = dialog.width = dialog.editor._framework.ed_cell.offsetWidth + 'px'; 69 dialog.rootElem.style.height = dialog.height = dialog.editor._framework.ed_cell.offsetHeight + 'px'; 70 70 dialog.onresize(); 71 71 } -
trunk/plugins/Linker/linker.js
r198 r272 371 371 { 372 372 options.style.height = ddTree.style.height = (parseInt(dialog.height) - dialog.getElementById('h1').offsetHeight) + 'px'; 373 ddTree.style.width = ( dialog.width- 322 ) + 'px';373 ddTree.style.width = (parseInt(dialog.width) - 322 ) + 'px'; 374 374 } 375 375
