src/js/widgets.js
branchpopcorn-port
changeset 170 5150ae56e0a6
parent 124 2758dfb208b2
child 238 6008172a0592
child 287 5c7495102bd7
equal deleted inserted replaced
169:427632a324d5 170:5150ae56e0a6
    18   if (config.hasOwnProperty("width")) {
    18   if (config.hasOwnProperty("width")) {
    19      // this.width and not this._width because we consider it public.
    19      // this.width and not this._width because we consider it public.
    20      this.width = config.width;     
    20      this.width = config.width;     
    21   }
    21   }
    22   
    22   
    23   if (config.hasOwnProperty("height")) {
    23   if (config.hasOwnProperty("height")) {    
    24      // this.width and not this._width because we consider it public.
       
    25      this.height = config.height;     
    24      this.height = config.height;     
    26   }
    25   }
    27   
    26   
       
    27   if (config.hasOwnProperty("heightmax")) {
       
    28      this.heightmax = config.heightmax;     
       
    29   }
       
    30 
       
    31   if (config.hasOwnProperty("widthmax")) {
       
    32      this.widthmax = config.widthmax;     
       
    33   }
    28   
    34   
    29 };
    35 };
    30 
    36 
    31 IriSP.Widget.prototype.draw = function() {
    37 IriSP.Widget.prototype.draw = function() {
    32   /* implemented by "sub-classes" */  
    38   /* implemented by "sub-classes" */