Skip to content

Commit

Permalink
if a specific height/width is requested for orientation reasons, hono…
Browse files Browse the repository at this point in the history
…r it over the natural height/width
  • Loading branch information
dound committed Dec 7, 2008
1 parent 936bb24 commit 2c9dcf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jtoolbar.js
Expand Up @@ -617,8 +617,8 @@ var JTB = function() {
* otherwise screw us up)
*/
var maxXY = computeMaxXY(this.e, true);
this.width = maxXY.x;
this.height = maxXY.y;
this.width = ((w===0) ? maxXY.x : w);
this.height = ((h===0) ? maxXY.y : h);
this.first = false;
}

Expand Down

0 comments on commit 2c9dcf8

Please sign in to comment.