Index: /CKEditor/branches/prototype/_source/core/dom/element.js
===================================================================
--- /CKEditor/branches/prototype/_source/core/dom/element.js (revision 2414)
+++ /CKEditor/branches/prototype/_source/core/dom/element.js (revision 2415)
@@ -320,5 +320,5 @@
function( propertyName )
{
- return this.getWindow().$.getComputedStyle( this.$, '' ).getPropertyValue( propertyName );
+ return this.getWindow().$.getComputedStyle( this.$, '' ).getPropertyValue( CKEDITOR.tools.cssStyleToDomStyle( propertyName ) );
},
@@ -719,11 +719,4 @@
}
}
- },
-
- getDisplayedStyle : function( name )
- {
- return this.getWindow().$.getComputedStyle ?
- this.getWindow().$.getComputedStyle( this.$, null ).getPropertyValue( name ) :
- this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle( name )];
- }
+ }
});
Index: /CKEditor/branches/prototype/_source/core/dom/window.js
===================================================================
--- /CKEditor/branches/prototype/_source/core/dom/window.js (revision 2414)
+++ /CKEditor/branches/prototype/_source/core/dom/window.js (revision 2415)
@@ -54,4 +54,10 @@
},
+ /**
+ * Gets the width and height of this window's viewable area.
+ * @example
+ * var win = new CKEDITOR.dom.window( window );
+ * var size = win.getViewPaneSize();
+ */
getViewPaneSize : function()
{
@@ -68,4 +74,10 @@
},
+ /**
+ * Gets the current position of the window's scroll.
+ * @example
+ * var win = new CKEDITOR.dom.window( window );
+ * var size = win.getScrollPosition();
+ */
getScrollPosition : function()
{
Index: /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js (revision 2414)
+++ /CKEditor/branches/prototype/_source/plugins/dialog/plugin.js (revision 2415)
@@ -132,5 +132,5 @@
// The dialog may be fixed positioned or absolute positioned. Ask the
// browser what is the current situation first.
- var isFixed = this._.element.getDisplayedStyle( 'position' ) == 'fixed';
+ var isFixed = this._.element.getComputedStyle( 'position' ) == 'fixed';
// If not fixed positioned, add scroll position to the coordinates.