Ticket #659 (closed defect: inactive)
Problems with editor on hidden iframe
| Reported by: | Michael Hosse <michael.hosse@…> | Owned by: | gogo |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Xinha Core | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
With IE there is an issue concerning use of xinha on hidden iframes. The editor does not know its width as from the second call. If this happens htmlareas.js fails in line 1650 with illegal argument because edcellwidth ist less than zero.
var edcellwidth = width;
if(panel_is_alive('left')) edcellwidth -= parseInt(this.config.panel_dimensions.left);
if(panel_is_alive('right')) edcellwidth -= parseInt(this.config.panel_dimensions.right);
this._iframe.style.width = edcellwidth + 'px';
A quickfix is to check edcellwidth before the assignment if it is greater than zero. But i am not sure if there is another reason for the wrong value in width.
Change History
Note: See
TracTickets for help on using
tickets.
