Skip to content

Commit

Permalink
two small fixes for browser behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jejacks0n committed Dec 15, 2010
1 parent 9e0787d commit eb91921
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion public/javascripts/midas.js
Expand Up @@ -43,7 +43,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() {
Expand Down
2 changes: 1 addition & 1 deletion public/javascripts/region.js
Expand Up @@ -41,7 +41,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;
Expand Down

0 comments on commit eb91921

Please sign in to comment.