Ticket #4863 (closed Bug: fixed)
Kama skin: IFrame created in iframedialog plugin doesn't stretch to 100% height in FF3.5
| Reported by: | pekka | Owned by: | m.nguyen |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.3 |
| Component: | UI : Dialogs | Version: | SVN (CKEditor) - OLD |
| Keywords: | Confirmed Firefox Review+ | Cc: |
Description
When creating a new plugin that utilizes the iframedialog plugin, you have to pass a Pixel width and height:
CKEDITOR.plugins.add('dialog_name',{
requires: ['iframedialog'],
init:function(a){
CKEDITOR.dialog.addIframe('dialog_name',
'Smiley',
this.path+'lister.php',550,300,
function(){/*oniframeload*/})
// etc. etc.
iframedialog will assign those values to the dialog only and not to the iframe. The iframe gets assigned 100% width and height in the final source code.
In the kama skin, but not in the office2003 and v2 skins, this will lead to the iframe being only 160 Pixels tall in Firefox 3.5. It works as expected in Internet Explorer 8.
A fix that worked for me in Firefox 3.5 was to modify plugins/iframedialog/plugin.js and set a fixed width to the iframe:
CKEDITOR.dialog.addIframe = function( name, title, src, width, height, onContentLoad )
{
var element =
{
type : 'iframe',
src : src,
width : '100%',
height : height // CHANGED
};
The attached screen shot is using a customized template but checked with the original kama template as well.
Feel free to contact me on follow-up questions.
Thanks for providing this awesome product.
Attachments
Change History
Changed 3 years ago by pekka
- Attachment CKScreenshot.PNG added
comment:2 Changed 3 years ago by fredck
- Keywords iframedialog firefox height removed
- Milestone set to CKEditor 3.3
comment:3 Changed 3 years ago by garry.yao
- Keywords Confirmed Firefox added
- Version set to SVN (CKEditor)
Confirmed with FF only.
comment:9 Changed 3 years ago by garry.yao
- Milestone changed from CKEditor 3.3 to CKEditor 3.2
Move to 3.2 since this bug not only affect iframe dialog plugin, but all dialogs' height in Firefox:
Environment
Firefox, Win7
Reproducing Procedures
- Open any page sample, then open the 'Link' dialog;
- Inspect the layout height of dialog contents element (td.cke_dialog_contents) with Firebug;
- Actual Result: The layouted height is 208;
- Expected Result: The layout height should be identical to defined minimum height, which is 230.
comment:10 Changed 3 years ago by m.nguyen
- Status changed from assigned to closed
- Resolution set to fixed
comment:11 Changed 3 years ago by m.nguyen
Fixed with [4922].
comment:12 Changed 3 years ago by fredck
- Keywords Review- added; Review+ removed
- Status changed from closed to reopened
- Resolution fixed deleted
- Milestone changed from CKEditor 3.2 to CKEditor 3.3
comment:13 Changed 3 years ago by fredck
comment:14 Changed 3 years ago by m.nguyen
- Keywords Review? added; Review- removed
New patch for IE quirks mode. This solution was a bit problem with smiley plugin, but this patch also fixed it.
comment:15 Changed 3 years ago by garry.yao
- Keywords Review- added; Review? removed
Cong, that's a nice hack[[BR]] We should try to keep layout hacks inside CSS files and comment out the culprit.
comment:18 Changed 3 years ago by m.nguyen
#5347 has been marked as dup
comment:19 Changed 3 years ago by m.nguyen
- Status changed from reopened to closed
- Resolution set to fixed
Refixed with [5248].

Screenshot of iframe in FF3.5