Changeset 417 for trunk


Ignore:
Timestamp:
10/29/05 16:35:39 (14 years ago)
Author:
gogo
Message:

Fix for #274 - if config.width/height specifed as only an integer it did
not assume length is pixels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r414 r417  
    14411441      case 'toolbar': 
    14421442      { 
    1443         width = this._toolBar.offsetWidth; 
     1443        width = this._toolBar.offsetWidth + 'px'; 
    14441444      } 
    14451445      break; 
     
    14471447      default : 
    14481448      { 
    1449         width = this.config.width; 
     1449        width = /[^0-9]/.test(this.config.width) ? this.config.width : this.config.width + 'px'; 
    14501450      } 
    14511451      break; 
     
    14621462      default : 
    14631463      { 
    1464         height = this.config.height; 
     1464        height = /[^0-9]/.test(this.config.height) ? this.config.height : this.config.height + 'px'; 
    14651465      } 
    14661466      break; 
Note: See TracChangeset for help on using the changeset viewer.