Browse files

OR-7997

  • Loading branch information...
1 parent 2307ab4 commit 572acbc6b1de9062a09b65fc4fe3001beb651a23 @bblatnick bblatnick committed with etgryphon Feb 10, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 frameworks/foundation/views/content_editable.js
View
10 frameworks/foundation/views/content_editable.js
@@ -1257,15 +1257,21 @@ SCUI.ContentEditableView = SC.WebView.extend(SC.Editable,
imageBorderStyle: function(key, value) {
var image = this.get('selectedImage');
if (!image) return '';
-
+
if (value !== undefined) {
this.set('isEditing', YES);
image.style.borderStyle = value;
+ if (value === 'none') {
+ image.style.border = 0; // blow away the border to be safe.
+ }
+ else {
+ delete image.style.border;
+ }
return value;
} else {
return image.style.borderStyle;
-
+
}
}.property('selectedImage').cacheable(),

0 comments on commit 572acbc

Please sign in to comment.