Changeset 2125 for FCKeditor/branches
- Timestamp:
- 2008-06-24 13:18:15 (5 months ago)
- Location:
- FCKeditor/branches/versions/2.6.x/editor/_source
- Files:
-
- 2 modified
-
classes/fckstyle.js (modified) (3 diffs)
-
internals/fckdialog.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/branches/versions/2.6.x/editor/_source/classes/fckstyle.js
r1825 r2125 222 222 continue ; 223 223 224 /*jsl:fallthru*/ 225 224 226 default : 225 227 FCKDomTools.RemoveAttribute( pathElement, att ) ; … … 374 376 continue ; 375 377 378 /*jsl:fallthru*/ 379 376 380 default : 377 381 FCKDomTools.RemoveAttribute( currentNode, att ) ; … … 546 550 if ( FCKDomTools.GetAttributeValue( innerElement, att ) != this.GetFinalAttributeValue( att ) ) 547 551 continue ; 552 553 /*jsl:fallthru*/ 548 554 549 555 default : -
FCKeditor/branches/versions/2.6.x/editor/_source/internals/fckdialog.js
r2113 r2125 100 100 var viewSize = FCKTools.GetViewPaneSize( topWindow ) ; 101 101 var scrollPosition = { 'X' : 0, 'Y' : 0 } ; 102 if ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7 ) 103 FCKTools.GetScrollPosition( topWindow ) ; 102 var useAbsolutePosition = FCKBrowserInfo.IsIE && ( !FCKBrowserInfo.IsIE7 || !FCKTools.IsStrictMode( topWindow.document ) ) ; 103 if ( useAbsolutePosition ) 104 scrollPosition = FCKTools.GetScrollPosition( topWindow ) ; 104 105 var iTop = Math.max( scrollPosition.Y + ( viewSize.Height - height - 20 ) / 2, 0 ) ; 105 106 var iLeft = Math.max( scrollPosition.X + ( viewSize.Width - width - 20 ) / 2, 0 ) ; … … 117 118 FCKDomTools.SetElementStyles( dialog, 118 119 { 119 'position' : ( FCKBrowserInfo.IsIE && !FCKBrowserInfo.IsIE7) ? 'absolute' : 'fixed',120 'position' : ( useAbsolutePosition ) ? 'absolute' : 'fixed', 120 121 'top' : iTop + 'px', 121 122 'left' : iLeft + 'px',