Sha256: f7e20b0741d32d1443ef551d07eef65b4e40e2bda4411c7b91dff31f265d2907
Contents?: true
Size: 1.01 KB
Versions: 5
Compression:
Stored size: 1.01 KB
Contents
/* RSence * Copyright 2010 Riassence Inc. * http://riassence.com/ * * You should have received a copy of the GNU General Public License along * with this software package. If not, contact licensing@riassence.com */ // Simple view for scrolling purposes. // Uses two special options for setting scroll bar behavior: // - scrollX: true | false | 'auto' // - scrollY: true | false | 'auto' HScrollView = HControl.extend({ controlDefaults: HControlDefaults.extend({ scrollX: true, scrollY: true }), drawSubviews: function(){ if(!this.options.scrollX){ this.setStyle('overflow-x','hidden'); } else if(this.options.scrollX === 'auto'){ this.setStyle('overflow-x','auto'); } else { this.setStyle('overflow-x','scroll'); } if(!this.options.scrollY){ this.setStyle('overflow-y','hidden'); } else if(this.options.scrollY === 'auto'){ this.setStyle('overflow-y','auto'); } else { this.setStyle('overflow-y','scroll'); } } });
Version data entries
5 entries across 5 versions & 1 rubygems