Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit e5a606edfff9f3a5faba19ed568a46b87f7e85c3 1 parent 0754d74
YUI Builder authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/gallery-text-resizer/js/text-resizer.js
View
6 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'
}
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.