Permalink
Browse files

include fixes in distro

  • Loading branch information...
jejacks0n committed Dec 15, 2010
1 parent eb91921 commit 1938d3f7bfc508d432c2c9cde39b30b05225de6e
Showing with 4 additions and 3 deletions.
  1. +3 −2 public/distro/javascripts/midas.js
  2. +1 −1 public/distro/javascripts/midas.min.js
@@ -154,7 +154,8 @@ var Midas = Class.create({
seamless: 'true',
frameborder: '0',
id: 'midas_iframe_window',
- src: 'about:blank'
+ src: 'about:blank',
+ width: '100%'
});
Event.observe(this.iframe, 'load', function() {
@@ -582,7 +583,7 @@ Midas.Region = Class.create({
if (Element.getStyle(this.element, 'overflow') != 'hidden') {
Element.setStyle(this.element, {overflow: 'auto'});
}
- var width = this.element.getWidth();
+ var width = this.element.scrollWidth;
if (width) Element.setStyle(this.element, {maxWidth: width + 'px'});
}
this.element.contentEditable = true;
Oops, something went wrong.

0 comments on commit 1938d3f

Please sign in to comment.