Changeset 4606
- Timestamp:
- 12/07/09 11:36:30 (4 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/floatpanel/plugin.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r4605 r4606 87 87 <li><a href="http://dev.fckeditor.net/ticket/4725">#4725</a> : Fixed hitting 'enter' before html comment node produces an JavaScript error.</li> 88 88 <li><a href="http://dev.fckeditor.net/ticket/4522">#4522</a> : Fixed unable to redo when typing after insert an image with relative url.</li> 89 <li><a href="http://dev.fckeditor.net/ticket/4594">#4594</a> : Fixed context menu goes off-screen when mouse is at right had side of screen.</li> 89 90 </ul> 90 91 <h3> -
CKEditor/trunk/_source/plugins/floatpanel/plugin.js
r4526 r4606 132 132 top : top + 'px', 133 133 left : '-3000px', 134 visibility : 'hidden',135 134 opacity : '0', // FF3 is ignoring "visibility" 136 135 display : '' … … 192 191 left -= element.$.offsetWidth; 193 192 194 element.setStyles( 195 { 196 left : left + 'px', 197 visibility : '', 198 opacity : '1' // FF3 is ignoring "visibility" 199 }); 200 201 if ( block.autoSize ) 193 var panelLoad = CKEDITOR.tools.bind( function () 202 194 { 203 function setHeight()195 if ( block.autoSize ) 204 196 { 205 197 var target = element.getFirst(); … … 217 209 panel._.currentBlock.element.setStyle( 'display', 'none' ).removeStyle( 'display' ); 218 210 } 219 220 if ( panel.isLoaded )221 setHeight();222 211 else 223 panel.onLoad = setHeight; 224 } 225 else 226 element.getFirst().removeStyle( 'height' ); 227 228 // Set the IFrame focus, so the blur event gets fired. 212 element.getFirst().removeStyle( 'height' ); 213 214 var panelElement = panel.element, 215 panelWindow = panelElement.getWindow(), 216 windowScroll = panelWindow.getScrollPosition(), 217 viewportSize = panelWindow.getViewPaneSize(), 218 panelSize = 219 { 220 'height' : panelElement.$.offsetHeight, 221 'width' : panelElement.$.offsetWidth 222 }; 223 224 // If the menu is horizontal off, shift it toward 225 // the opposite language direction. 226 if ( rtl ? left < 0 : left + panelSize.width > viewportSize.width + windowScroll.x ) 227 left += ( panelSize.width * ( rtl ? 1 : -1 ) ); 228 229 // Vertical off screen is simpler. 230 if( top + panelSize.height > viewportSize.height + windowScroll.y ) 231 top -= panelSize.height; 232 233 element.setStyles( 234 { 235 top : top + 'px', 236 left : left + 'px', 237 opacity : '1' 238 } ); 239 240 } , this ); 241 242 panel.isLoaded ? panelLoad() : panel.onLoad = panelLoad; 243 244 // Set the panel frame focus, so the blur event gets fired. 229 245 CKEDITOR.tools.setTimeout( function() 230 246 { … … 240 256 } 241 257 } 242 258 243 259 iframe.$.contentWindow.focus(); 244 245 260 // We need this get fired manually because of unfired focus() function. 246 if ( CKEDITOR.env.ie && !CKEDITOR.env.quirks )247 this.allowBlur( true ); 261 this.allowBlur( true ); 262 248 263 }, 0, this); 249 264 }, 0, this);
Note: See TracChangeset
for help on using the changeset viewer.
