Permalink
Browse files

gallery-2011.03.11-23-49 apipkin gallery-text-resizer

  • Loading branch information...
1 parent 0754d74 commit e5a606edfff9f3a5faba19ed568a46b87f7e85c3 YUI Builder committed Mar 11, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gallery-text-resizer/js/text-resizer.js
@@ -80,7 +80,7 @@ Y.namespace('Text').Resizer = Y.Base.create('text-resize', Y.Plugin.Base, [], {
_update : function() {
Y.log('_update', 'info', 'Y.Text.Resizer');
- Y.one('body').setStyle('fontSize', this.get('currentSize') + this.get('unit'));
+ Y.one(this.get('targetNode')).setStyle('fontSize', this.get('currentSize') + this.get('unit'));
},
_save : function(size) {
@@ -122,6 +122,10 @@ Y.namespace('Text').Resizer = Y.Base.create('text-resize', Y.Plugin.Base, [], {
cookieName : {
value : 'YUI_TEXT_RESIZER'
+ },
+
+ targetNode : {
+ value : 'body'
}
}
});

0 comments on commit e5a606e

Please sign in to comment.