#2512: IE8 beta2, contents of dialogs don't fill the width of the container
---------------------------+------------------------------------------------
  Reporter:  alfonsoml     |       Owner:                    
      Type:  Bug           |      Status:  reopened          
  Priority:  Normal        |   Milestone:                    
 Component:  UI : Dialogs  |     Version:  FCKeditor 2.6 Beta
Resolution:                |    Keywords:  Confirmed IE8     
---------------------------+------------------------------------------------

Comment(by saul11):

 that appeared to not work properly when reopening the dialog.

 By canceling out piece by piece of the dialog's CSS if found out that when
 the .contents CSS rule was removed, the problem disappeared. And when I
 put a width in there then too the problem was gone.
 Then I tried to set the width automatically in function InnerDialogLoaded:
 {{{
 if (FCKBrowserInfo.IsIE) $('contents').style.width =
 $('contents').offsetWidth + 'px';
 }}}
 But this resulted in a transparent empty dialog on some computers. I
 assumed that that was because the offsetWidth was not yet known so I built
 in a check on that:
 {{{
 if (FCKBrowserInfo.IsIE)
 {
         setContentsWidth = function(){
                 if ($('contents').offsetWidth > 0)
 $('contents').style.width = $('contents').offsetWidth + 'px';
                 else setTimeout(setContentsWidth, 50);
         };
         setContentsWidth();
 }
 }}}
 But still the dialog sometimes showed transparent.
 So although this did work on some computers, others showed a transparent
 dialog.

 Setting the value to a fixed size did work, but that's only useful per
 plugin of course:
 {{{
 dialog.$('contents').style.width = '500px';
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2512#comment:8>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to